From 3a91c4754de8b45d7b95ecde2a44b7455d829dba Mon Sep 17 00:00:00 2001 From: Yecheng Fu Date: Wed, 25 Mar 2020 21:30:46 +0800 Subject: [PATCH] don't run on k8s-node if branch is a commit --- ci/pingcap_tidb_operator_build_kind.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/pingcap_tidb_operator_build_kind.groovy b/ci/pingcap_tidb_operator_build_kind.groovy index 70ab0486bb..29ba809a8b 100644 --- a/ci/pingcap_tidb_operator_build_kind.groovy +++ b/ci/pingcap_tidb_operator_build_kind.groovy @@ -254,11 +254,11 @@ def call(BUILD_BRANCH, CREDENTIALS_ID, CODECOV_CREDENTIALS_ID) { // we requires ~/bin/config.cfg, filemgr-linux64 utilities on k8s-kind node // TODO make it possible to run on any node - node('k8s-kind') { - dir("${PROJECT_DIR}"){ - deleteDir() - unstash 'tidb-operator' - if ( !(BUILD_BRANCH ==~ /[a-z0-9]{40}/) ) { + if ( !(BUILD_BRANCH ==~ /[a-z0-9]{40}/) ) { + node('k8s-kind') { + dir("${PROJECT_DIR}") { + deleteDir() + unstash 'tidb-operator' stage('upload tidb-operator, tidb-backup-manager binary and charts'){ //upload binary and charts sh """