Jenkinsfile: do not push images if job was PR-triggered

This commit is contained in:
Olev Kartau 2022-05-19 14:49:43 +03:00
parent 5ebd0d3053
commit 1b815e930c

11
Jenkinsfile vendored
View File

@ -155,11 +155,12 @@ pipeline {
} }
} }
} }
} stage('push images') {
post { when { not { changeRequest() } }
success { steps {
withDockerRegistry([ credentialsId: "e16bd38a-76cb-4900-a5cb-7f6aa3aeb22d", url: "https://${REG}" ]) { withDockerRegistry([ credentialsId: "e16bd38a-76cb-4900-a5cb-7f6aa3aeb22d", url: "https://${REG}" ]) {
sh "make push" sh "make push"
}
} }
} }
} }