diff --git a/Jenkinsfile b/Jenkinsfile index 52d7f27..849561b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,11 @@ pipeline { sh 'docker push aisthanestha/docker-test-image:latest' } } - + post { + always { + sh 'docker logout' + } + } stage('Pull and Deploy') { steps { node('any') { // Provide a label for the Jenkins agent @@ -44,9 +48,5 @@ pipeline { } } - post { - always { - sh 'docker logout' - } - } + }