0
1
Fork 0

Jenkinsfile fixes

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

6
Jenkinsfile vendored
View File

@ -28,9 +28,11 @@ pipeline {
}
stage('Package') {
when {
anyOf {
branch 'master'
branch 'test'
}
}
agent {
docker {
image 'registry.verdnatura.es/vn-debuild'
@ -46,9 +48,11 @@ pipeline {
}
stage('Build') {
when {
anyOf {
branch 'master'
branch 'test'
}
}
environment {
CREDS = credentials('docker-registry')
}
@ -60,9 +64,11 @@ pipeline {
}
stage('Deploy') {
when {
anyOf {
branch 'master'
branch 'test'
}
}
environment {
DOCKER_HOST = "${env.SWARM_HOST}"
}