We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0c54d commit c215386Copy full SHA for c215386
Jenkinsfile
@@ -95,6 +95,12 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
95
currentBuild.result = 'NOT_BUILT'
96
return
97
}
98
+// This is a limited maintenance branch, so don't run this on pushes to the branch, only on PRs
99
+if ( !env.CHANGE_ID ) {
100
+ print "INFO: Build skipped because this job should only run for pull request, not for branch pushes"
101
+ currentBuild.result = 'NOT_BUILT'
102
+ return
103
+}
104
105
stage('Build') {
106
Map<String, Closure> executions = [:]
0 commit comments