diff --git a/Jenkinsfile b/Jenkinsfile index d51361c7a..0246d9863 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,7 +53,6 @@ try { sh "docker login --username \"${env.USER}\" --password \"${env.PASSWORD}\" ${env.REGISTRY}" sh "docker-compose build --parallel" sh "docker-compose push" - sh "docker logout ${env.REGISTRY}" withCredentials([dockerCert( credentialsId: 'docker', @@ -69,6 +68,8 @@ try { sh "docker-compose pull" sh "docker-compose up -d" } + + sh "docker logout ${env.REGISTRY}" } } }