Avoid running the pipeline on branch indexing

This commit is contained in:
Christian Beikov 2022-03-25 15:36:38 +01:00
parent 5a2f92588c
commit b84a6e3a7f
1 changed files with 7 additions and 0 deletions

7
Jenkinsfile vendored
View File

@ -62,6 +62,13 @@ stage('Configure') {
])
}
// Avoid running the pipeline on branch indexing
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'ABORTED'
return
}
stage('Build') {
Map<String, Closure> executions = [:]
environments.each { BuildEnvironment buildEnv ->