From 66b918ed8fea6c567be8ff95137e2f4d6d89c81f Mon Sep 17 00:00:00 2001 From: Yecheng Fu Date: Thu, 26 Mar 2020 08:52:40 +0800 Subject: [PATCH] don't run on k8s-node if branch is a commit (#2032) --- 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 """