From 4c3f7a5da420aa165a02fdda03408a293150566d Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Thu, 10 Dec 2020 16:10:31 +0800 Subject: [PATCH] modify Jenkinsfile --- tests/Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/Jenkinsfile b/tests/Jenkinsfile index 9758c36082..8d7ef6ffa9 100644 --- a/tests/Jenkinsfile +++ b/tests/Jenkinsfile @@ -1,13 +1,15 @@ +properties([pipelineTriggers([githubPush()])]) +node { + git url: 'https://github.com/taosdata/TDengine.git' +} + // 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/taosdata/TDengine.git' -} + def pre_test(){ catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { -- GitLab