Jenkinsfile fixes
This commit is contained in:
parent
1e63adbdca
commit
1b2e5e491c
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue