Jenkinsfile fixes
This commit is contained in:
parent
d7cacd62b3
commit
2e0b5717ed
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue