Skip to content

Commit

Permalink
Fix Jenkinsfile for deploy stage condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ligangty committed Nov 2, 2023
1 parent 79fc0d6 commit 00a4833
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 00a4833

Please sign in to comment.