This commit is contained in:
Gregory Hendrickson
2023-06-09 14:47:03 -07:00
parent 97c980143b
commit f28b4c4ace

12
Jenkinsfile vendored
View File

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