Jenkinsfile fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2022-05-05 11:19:29 +02:00
parent 2d12be21cb
commit 8ec889a9f7
1 changed files with 12 additions and 6 deletions

18
Jenkinsfile vendored
View File

@ -28,8 +28,10 @@ pipeline {
} }
stage('Package') { stage('Package') {
when { when {
branch 'master' anyOf {
branch 'test' branch 'master'
branch 'test'
}
} }
agent { agent {
docker { docker {
@ -46,8 +48,10 @@ pipeline {
} }
stage('Build') { stage('Build') {
when { when {
branch 'master' anyOf {
branch 'test' branch 'master'
branch 'test'
}
} }
environment { environment {
CREDS = credentials('docker-registry') CREDS = credentials('docker-registry')
@ -60,8 +64,10 @@ pipeline {
} }
stage('Deploy') { stage('Deploy') {
when { when {
branch 'master' anyOf {
branch 'test' branch 'master'
branch 'test'
}
} }
environment { environment {
DOCKER_HOST = "${env.SWARM_HOST}" DOCKER_HOST = "${env.SWARM_HOST}"