Jenkinsfile fixes

This commit is contained in:
Juan Ferrer 2019-01-11 14:15:34 +01:00
parent 1e63adbdca
commit 1b2e5e491c
1 changed files with 22 additions and 19 deletions

13
Jenkinsfile vendored
View File

@ -3,6 +3,7 @@
def buildError
pipeline {
agent any
environment {
REGISTRY = 'registry.verdnatura.es'
DOCKER_HOST_1 = 'tcp://vch1.verdnatura.es:2376'
@ -74,23 +75,25 @@ pipeline {
environment {
DOCKER_TLS_VERIFY = 1
}
steps {
parallel(
vch1: {
parallel {
stage('Host 1') {
environment {
DOCKER_HOST = "${env.DOCKER_HOST_1}"
}
steps {
sh "docker-compose pull"
sh "docker-compose up -d"
}
},
vch2: {
stage('Host 2') {
environment {
DOCKER_HOST = "${env.DOCKER_HOST_2}"
}
steps {
sh "docker-compose pull"
sh "docker-compose up -d"
}
)
}
}
}
stage('Cleanup') {