diff --git a/Jenkinsfile b/Jenkinsfile index cf1b76f..4611fd2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,7 +21,6 @@ pipeline { } environment { CREDS = credentials('docker-registry') - CUPS = credentials('printnatura') } steps { sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY' @@ -38,6 +37,7 @@ pipeline { } environment { DOCKER_HOST = "${env.SWARM_HOST}" + CUPS = credentials('printnatura') } steps { sh "docker stack deploy --with-registry-auth --compose-file docker-compose.yml ${env.STACK_NAME}"