Jenkinsfile fixes

This commit is contained in:
Juan Ferrer 2019-01-11 14:42:40 +01:00
parent d7cacd62b3
commit 2e0b5717ed
1 changed files with 2 additions and 4 deletions

6
Jenkinsfile vendored
View File

@ -75,15 +75,14 @@ pipeline {
environment {
DOCKER_TLS_VERIFY = 1
}
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
parallel {
stage('Host 1') {
environment {
DOCKER_HOST = "${env.DOCKER_HOST_1}"
}
steps {
sh "docker-compose pull"
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
sh "docker-compose pull"
sh "docker-compose up -d"
}
}
@ -93,14 +92,13 @@ pipeline {
DOCKER_HOST = "${env.DOCKER_HOST_2}"
}
steps {
sh "docker-compose pull"
withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) {
sh "docker-compose pull"
sh "docker-compose up -d"
}
}
}
}
}
}
stage('Cleanup') {
steps {