Update: Retry mechanism + push

oh_security
TAMDeveloper13 4 months ago
parent 47074423e1
commit 6bab027427

2
Jenkinsfile vendored

@ -65,6 +65,7 @@ pipeline {
stage('Push to Docker Hub') { stage('Push to Docker Hub') {
steps { steps {
retry(3) {
script { script {
def fullImageName = "${DOCKER_HUB_USERNAME}/${IMAGE_NAME}" def fullImageName = "${DOCKER_HUB_USERNAME}/${IMAGE_NAME}"
sh "docker push ${fullImageName}:${IMAGE_TAG}" sh "docker push ${fullImageName}:${IMAGE_TAG}"
@ -76,6 +77,7 @@ pipeline {
} }
} }
} }
}
post { post {
always { always {

Loading…
Cancel
Save