Avoid running the pipeline on branch indexing
This commit is contained in:
parent
5a2f92588c
commit
b84a6e3a7f
|
@ -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') {
|
stage('Build') {
|
||||||
Map<String, Closure> executions = [:]
|
Map<String, Closure> executions = [:]
|
||||||
environments.each { BuildEnvironment buildEnv ->
|
environments.each { BuildEnvironment buildEnv ->
|
||||||
|
|
Loading…
Reference in New Issue