From b84a6e3a7f5e8406c0992ad67dcab5b544c3c7f4 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Fri, 25 Mar 2022 15:36:38 +0100 Subject: [PATCH] Avoid running the pipeline on branch indexing --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 7c96a1d8e9..f70f00e707 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 executions = [:] environments.each { BuildEnvironment buildEnv ->