Skip to content

Commit

Permalink
feature(pingcap/tiflash): intergration support feature branch and ci …
Browse files Browse the repository at this point in the history
…params in PR title (#3042)

you can append suffix in pr title to set pd and tikv and tidb branch:

"| tidb=release-8.2 tikv=feature/xxx pd=master"

Fixes #3041

Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Jul 31, 2024
1 parent 6442721 commit 332a425
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,12 @@ pipeline {
dir("tests/${TEST_PATH}") {
echo "path: ${pwd()}"
sh "docker ps -a && docker version"
sh "TAG=${tiflash_commit_hash} BRANCH=${REFS.base_ref} ./run.sh"
script {
def pdBranch = component.computeBranchFromPR('pd', REFS.base_ref, REFS.pulls[0].title, 'master')
def tikvBranch = component.computeBranchFromPR('tikv', REFS.base_ref, REFS.pulls[0].title, 'master')
def tidbBranch = component.computeBranchFromPR('tidb', REFS.base_ref, REFS.pulls[0].title, 'master')
sh "PD_BRANCH=${pdBranch} TIKV_BRANCH=${tikvBranch} TIDB_BRANCH=${tidbBranch} TAG=${tiflash_commit_hash} BRANCH=${REFS.base_ref} ./run.sh"
}
}
}
}
Expand Down

0 comments on commit 332a425

Please sign in to comment.