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') {
when { anyOf {
branch 'test'
branch 'master'
}}
environment {
CREDENTIALS = credentials('docker-registry')
}
@ -21,6 +25,10 @@ pipeline {
}
}
stage('Deploy') {
when { anyOf {
branch 'test'
branch 'master'
}}
environment {
DOCKER_HOST = "${env.SWARM_HOST}"
}