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}" } } }