skip build on branch indexing

This commit is contained in:
liuyq-617 2020-12-10 10:12:41 +08:00
parent 4f4c34792b
commit 6b04af9e8c
1 changed files with 7 additions and 1 deletions

8
tests/Jenkinsfile vendored
View File

@ -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(){