diff --git a/Jenkinsfile b/Jenkinsfile index f9ff883..ff85dcb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'