Jenkinsfile fixes
gitea/worker-time-control/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2021-10-21 13:41:24 +02:00
parent 5ce6c4834d
commit 621dc729f1
1 changed files with 8 additions and 0 deletions

8
Jenkinsfile vendored
View File

@ -13,6 +13,10 @@ pipeline {
} }
} }
stage('Build') { stage('Build') {
when { anyOf {
branch 'test'
branch 'master'
}}
environment { environment {
CREDENTIALS = credentials('docker-registry') CREDENTIALS = credentials('docker-registry')
} }
@ -21,6 +25,10 @@ pipeline {
} }
} }
stage('Deploy') { stage('Deploy') {
when { anyOf {
branch 'test'
branch 'master'
}}
environment { environment {
DOCKER_HOST = "${env.SWARM_HOST}" DOCKER_HOST = "${env.SWARM_HOST}"
} }