From 2308cf86611cf7ad1cc6dcb8b385bfde4ba6c59f Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Wed, 28 Dec 2022 23:30:09 +0800 Subject: [PATCH] fix(pipelines/pingcap/tidb/latest): support set peer repos in PR title (#1670) examples: - `: the PR main title | tidb-test=pr/1234` - `: the PR main title | plugin=pr/456` --- pipelines/pingcap/tidb/latest/ghpr_build.groovy | 2 +- pipelines/pingcap/tidb/latest/ghpr_mysql_test.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/pingcap/tidb/latest/ghpr_build.groovy b/pipelines/pingcap/tidb/latest/ghpr_build.groovy index 1bc924558..bf6934e2e 100644 --- a/pipelines/pingcap/tidb/latest/ghpr_build.groovy +++ b/pipelines/pingcap/tidb/latest/ghpr_build.groovy @@ -62,7 +62,7 @@ pipeline { cache(path: "./", filter: '**/*', key: "git/pingcap/enterprise-plugin/rev-${REFS.pulls[0].sha}", restoreKeys: ['git/pingcap/enterprise-plugin/rev-']) { retry(2) { script { - component.checkout('git@github.com:pingcap/enterprise-plugin.git', 'plugin', REFS.base_ref, '', GIT_CREDENTIALS_ID) + component.checkout('git@github.com:pingcap/enterprise-plugin.git', 'plugin', REFS.base_ref, REFS.pulls[0].title, GIT_CREDENTIALS_ID) } } } diff --git a/pipelines/pingcap/tidb/latest/ghpr_mysql_test.groovy b/pipelines/pingcap/tidb/latest/ghpr_mysql_test.groovy index 0486e2f66..d6dd8d2ab 100644 --- a/pipelines/pingcap/tidb/latest/ghpr_mysql_test.groovy +++ b/pipelines/pingcap/tidb/latest/ghpr_mysql_test.groovy @@ -56,7 +56,7 @@ pipeline { cache(path: "./", filter: '**/*', key: "git/pingcap/tidb-test/rev-${REFS.pulls[0].sha}", restoreKeys: ['git/pingcap/tidb-test/rev-']) { retry(2) { script { - component.checkout('git@github.com:pingcap/tidb-test.git', 'tidb-test', REFS.base_ref, '', GIT_CREDENTIALS_ID) + component.checkout('git@github.com:pingcap/tidb-test.git', 'tidb-test', REFS.base_ref, REFS.pulls[0].title, GIT_CREDENTIALS_ID) } } }