Skip to content

Commit

Permalink
Merge pull request #53 from ligangty/1.0.x
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 79fc0d6 + 00a4833 commit 30fa91d
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 30fa91d

Please sign in to comment.