diff --git a/ci/pingcap_tidb_operator_build_kind.groovy b/ci/pingcap_tidb_operator_build_kind.groovy index 1d1db5c7719..9e41436b8c5 100644 --- a/ci/pingcap_tidb_operator_build_kind.groovy +++ b/ci/pingcap_tidb_operator_build_kind.groovy @@ -37,7 +37,7 @@ def call(BUILD_BRANCH, CREDENTIALS_ID, CODECOV_CREDENTIALS_ID) { submoduleCfg: [], userRemoteConfigs: [[ credentialsId: "${CREDENTIALS_ID}", - refspec: '+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/*:refs/remotes/origin/heads/*', + refspec: '+refs/heads/*:refs/remotes/origin/* +refs/pull/*:refs/remotes/origin/pr/*', url: "${BUILD_URL}", ]] ] @@ -140,7 +140,7 @@ def call(BUILD_BRANCH, CREDENTIALS_ID, CODECOV_CREDENTIALS_ID) { } } - if ( BUILD_BRANCH == "master") { + if ( BUILD_BRANCH !=~ /[a-z0-9]{40}/) { stage('upload tidb-operator binary and charts'){ //upload binary and charts sh """ @@ -177,7 +177,7 @@ def call(BUILD_BRANCH, CREDENTIALS_ID, CODECOV_CREDENTIALS_ID) { return } - if ( BUILD_BRANCH == "master" ){ + if ( BUILD_BRANCH !=~ /[a-z0-9]{40}/ ){ slackmsg = "${slackmsg}" + "\n" + "Binary Download URL:" + "\n" + "${UCLOUD_OSS_URL}/builds/pingcap/operator/${GITHASH}/centos7/tidb-operator.tar.gz"