Skip to content

Commit

Permalink
don't run on k8s-node if branch is a commit (#2032)
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc authored Mar 26, 2020
1 parent 6e95f35 commit 66b918e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ci/pingcap_tidb_operator_build_kind.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down

0 comments on commit 66b918e

Please sign in to comment.