From b03007e8ef89f2459ab5f2d741a305a7944d0e74 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 2 Jan 2019 01:25:49 +0100 Subject: [PATCH] #814 Docker deploy fixes --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bad6daa7a..16a1d0eef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,19 +29,17 @@ node { } } stage ('Docker deployment') { - sh "docker-compose build" - withCredentials([dockerCert(credentialsId: 'docker', variable: 'DOCKER_CERT_PATH')]) { env.COMPOSE_HTTP_TIMEOUT = 300 env.COMPOSE_PROJECT_NAME = 'salix' env.DOCKER_TLS_VERIFY = 1 if (env.BRANCH_NAME != 'master') { - env.COMPOSE_PROJECT_NAME = '${env.BRANCH_NAME}-salix' + env.COMPOSE_PROJECT_NAME = "${env.BRANCH_NAME}-salix" } env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376'; - sh "docker-compose up -d" + sh "docker-compose up --build -d" } } }