diff --git a/Jenkinsfile b/Jenkinsfile index 580ac0bf..86498598 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,8 +28,10 @@ pipeline { } stage('Package') { when { - branch 'master' - branch 'test' + anyOf { + branch 'master' + branch 'test' + } } agent { docker { @@ -46,8 +48,10 @@ pipeline { } stage('Build') { when { - branch 'master' - branch 'test' + anyOf { + branch 'master' + branch 'test' + } } environment { CREDS = credentials('docker-registry') @@ -60,8 +64,10 @@ pipeline { } stage('Deploy') { when { - branch 'master' - branch 'test' + anyOf { + branch 'master' + branch 'test' + } } environment { DOCKER_HOST = "${env.SWARM_HOST}"