Skip to content

Commit

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

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

"| tikv=feature/xxx pd=master"

default to use master branch bulid binary if not specify in pr title.

Ref #3041
  • Loading branch information
purelind authored Aug 1, 2024
1 parent 332a425 commit 48a4ac8
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pipelines/pingcap/tidb/latest/pull_integration_ddl_test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,18 @@ pipeline {
sh label: 'tidb-server', script: '[ -f bin/tidb-server ] || make'
sh label: 'ddl-test', script: 'ls bin/ddltest || make ddltest'
retry(3) {
sh label: 'download binary', script: """
chmod +x ${WORKSPACE}/scripts/PingCAP-QE/tidb-test/*.sh
${WORKSPACE}/scripts/PingCAP-QE/tidb-test/download_pingcap_artifact.sh --pd=${REFS.base_ref} --tikv=${REFS.base_ref}
mv third_bin/tikv-server bin/
mv third_bin/pd-server bin/
ls -alh bin/
"""
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')
sh label: 'download binary', script: """
chmod +x ${WORKSPACE}/scripts/PingCAP-QE/tidb-test/*.sh
${WORKSPACE}/scripts/PingCAP-QE/tidb-test/download_pingcap_artifact.sh --pd=${pdBranch} --tikv=${tikvBranch}
mv third_bin/tikv-server bin/
mv third_bin/pd-server bin/
ls -alh bin/
"""
}

}
}
}
Expand Down

0 comments on commit 48a4ac8

Please sign in to comment.