diff --git a/Jenkinsfile b/Jenkinsfile index 2ed7cdc..1e24e2d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'