From 269c40df158daf4c9a007bf4c2d80d3c08a1ce8a Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 20 Oct 2021 15:38:46 +0200 Subject: [PATCH] Jenkinsfile fixes --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c9830b4..2bfeede 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,6 @@ pipeline { agent any environment { PROJECT_NAME = 'worker-time-control' - STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}" } stages { stage('Checkout') { @@ -25,7 +24,7 @@ pipeline { DOCKER_HOST = "${env.SWARM_HOST}" } steps { - sh "docker stack deploy --with-registry-auth --prune --compose-file docker-compose.yml ${env.STACK_NAME}" + sh "docker stack deploy --with-registry-auth --prune --compose-file docker-compose.yml ${env.PROJECT_NAME}" } } }