Skip to content

Commit

Permalink
Merge pull request #54 from ligangty/main
Browse files Browse the repository at this point in the history
Fix Jenkinsfile for deploy stage condition
  • Loading branch information
ligangty authored Nov 2, 2023
2 parents 6ce4670 + f64b7ca commit 88afbff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ pipeline {
}
}
stage('Deploy') {
when { branch 'main' }
when {
allOf {
expression { my_bc != null }
expression { env.CHANGE_ID == null } // Not pull request
}
}
steps {
echo "Deploy"
sh '${M2_HOME}/bin/mvn help:effective-settings -B -V clean deploy -e -DskipTests'
Expand Down

0 comments on commit 88afbff

Please sign in to comment.