From 6b04af9e8cb068814a6bb2b6ccfa03238c261637 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Thu, 10 Dec 2020 10:12:41 +0800 Subject: [PATCH] skip build on branch indexing --- tests/Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/Jenkinsfile b/tests/Jenkinsfile index 49e25a2f5e..9758c36082 100644 --- a/tests/Jenkinsfile +++ b/tests/Jenkinsfile @@ -1,6 +1,12 @@ +// execute this before anything else, including requesting any time on an agent +if (currentBuild.rawBuild.getCauses().toString().contains('BranchIndexingCause')) { + print "INFO: Build skipped due to trigger being Branch Indexing" + currentBuild.result = 'ABORTED' // optional, gives a better hint to the user that it's been skipped, rather than the default which shows it's successful + return +} properties([pipelineTriggers([githubPush()])]) node { - git url: 'https://github.com/liuyq-617/TDengine' + git url: 'https://github.com/taosdata/TDengine.git' } def pre_test(){