From cdcb2b1a7f61d0bf4ae5ecae69abca92a0fc679a Mon Sep 17 00:00:00 2001 From: Yiqing Liu Date: Thu, 21 Oct 2021 14:54:18 +0800 Subject: [PATCH] [TD-10733]skip CI by default for docs/* branch (#8368) * [TD-10733]skip CI by default for docs/* branch * fix error * udpate jenkinsfile --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 72882f9891..11095d64b0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -201,8 +201,8 @@ pipeline { stages { stage('pre_build'){ agent{label 'master'} - when { - changeRequest() + when{ + changeRequest() } steps { script{ @@ -255,6 +255,7 @@ pipeline { expression{ return skipbuild.trim() == '2' } + not{ expression { env.CHANGE_BRANCH =~ /docs\// }} } } parallel { -- GitLab