Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yma96 committed Jun 29, 2023
1 parent 908e9bd commit c9ddaf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ pipeline {
}
}
stage('Deploy') {
when { branch 'main' }
when {
allOf {
expression { env.CHANGE_ID == null } // Not Pull request
}
}
steps {
echo "Deploy"
sh '${M2_HOME}/bin/mvn help:effective-settings -B -V clean deploy -e'
Expand Down

0 comments on commit c9ddaf1

Please sign in to comment.