diff --git a/Jenkinsfile b/Jenkinsfile index 94cdae728..d51361c7a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,21 +54,21 @@ try { sh "docker-compose build --parallel" sh "docker-compose push" sh "docker logout ${env.REGISTRY}" - } - withCredentials([dockerCert( - credentialsId: 'docker', - variable: 'DOCKER_CERT_PATH') - ]) { - env.DOCKER_TLS_VERIFY = 1 + withCredentials([dockerCert( + credentialsId: 'docker', + variable: 'DOCKER_CERT_PATH') + ]) { + env.DOCKER_TLS_VERIFY = 1 - env.DOCKER_HOST = 'tcp://vch1.verdnatura.es:2376'; - sh "docker-compose pull" - sh "docker-compose up -d" + env.DOCKER_HOST = 'tcp://vch1.verdnatura.es:2376'; + sh "docker-compose pull" + sh "docker-compose up -d" - env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376'; - sh "docker-compose pull" - sh "docker-compose up -d" + env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376'; + sh "docker-compose pull" + sh "docker-compose up -d" + } } } }