Update Jenkinsfile

This commit is contained in:
Mihai Georgescu 2023-12-04 12:49:45 +02:00 committed by GitHub
parent 704dbb48b9
commit 5e2ae023e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
Jenkinsfile vendored
View file

@ -45,7 +45,7 @@ pipeline {
}
stage('Tag the docker image') {
when {
// Condition to execute the stage when the branch is main
// Condition to execute the stage when the branch is mai
changeRequest()
}
steps {
@ -98,8 +98,8 @@ pipeline {
stage('Tag docker image again for the main repo') {
when {
// Condition to execute the stage when the branch is 'main'
expression {
return env.BRANCH_NAME == 'main'
not {
changeRequest()
}
}
steps {
@ -117,8 +117,8 @@ pipeline {
stage('Push docker image to main repository') {
when {
// Condition to execute the stage when the branch is 'main'
expression {
return env.BRANCH_NAME == 'main'
not {
changeRequest()
}
}
steps {