Skip to content

Commit

Permalink
chore(tiflash): update CI/CD pipelines (#3219)
Browse files Browse the repository at this point in the history
update the build script path.

Ref #3216

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

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Nov 8, 2024
1 parent 9a64816 commit e2be0c5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
21 changes: 16 additions & 5 deletions jenkins/pipelines/cd/atom-jobs/build-common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,19 @@ else
# check if LLVM toolchain is provided
echo "the new parameter of tiflash debug is : ${params.TIFLASH_DEBUG}"
if [[ -d "release-centos7-llvm" && \$(which clang 2>/dev/null) ]]; then
# add a new condition branch for `release-linux-llvm` folder:
if [[ -d "release-linux-llvm" && \$(which clang 2>/dev/null) ]]; then
if [[ "${params.TIFLASH_DEBUG}" != 'true' ]]; then
echo "start release ..........."
NPROC=12 release-linux-llvm/scripts/build-release.sh
else
echo "start debug ..........."
NPROC=12 release-linux-llvm/scripts/build-debug.sh
fi
mkdir -p ${TARGET}
mv release-linux-llvm/tiflash ${TARGET}/tiflash
elif [[ -d "release-centos7-llvm" && \$(which clang 2>/dev/null) ]]; then
if [[ "${params.TIFLASH_DEBUG}" != 'true' ]]; then
echo "start release ..........."
NPROC=12 release-centos7-llvm/scripts/build-release.sh
Expand Down Expand Up @@ -827,15 +838,15 @@ def release(product, label) {
}
checkoutFinishTimeInMillis = System.currentTimeMillis()

if (PRODUCT == 'tics') {
if (fileExists('release-centos7-llvm/scripts/build-release.sh') && params.OS != "darwin") {
if (PRODUCT == 'tics' && params.OS != 'darwin') {
if (fileExists('release-linux-llvm/scripts/build-release.sh') || fileExists('release-centos7-llvm/scripts/build-release.sh')) {
def image_tag_suffix = ""
if (fileExists(".toolchain.yml")) {
def config = readYaml(file: ".toolchain.yml")
image_tag_suffix = config.image_tag_suffix
}
label = "tiflash-llvm${image_tag_suffix}".replaceAll('\\.', '-')
}else if (fileExists('release-centos7/Makefile') && params.OS != "darwin"){
} else if (fileExists('release-centos7/Makefile')){
label = "tiflash"
}
}
Expand Down
4 changes: 2 additions & 2 deletions pipelines/pingcap/tiflash/latest/pull_integration_test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ pipeline {
script {
def generator = "Ninja"
def include_flag = ""
def fix_compile_commands = "${WORKSPACE}/tiflash/release-centos7-llvm/scripts/fix_compile_commands.py"
def run_clang_tidy = "${WORKSPACE}/tiflash/release-centos7-llvm/scripts/run-clang-tidy.py"
def fix_compile_commands = "${WORKSPACE}/tiflash/release-linux-llvm/scripts/fix_compile_commands.py"
def run_clang_tidy = "${WORKSPACE}/tiflash/release-linux-llvm/scripts/run-clang-tidy.py"
dir("${WORKSPACE}/build") {
sh label: "debug diff files", script: """
cat /tmp/tiflash-diff-files.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ pipeline {
script {
def generator = "Ninja"
def include_flag = ""
// TODO: #3217 replace "release-centos7-llvm" to "release-linux-llvm"
def fix_compile_commands = "${WORKSPACE}/tiflash/release-centos7-llvm/scripts/fix_compile_commands.py"
def run_clang_tidy = "${WORKSPACE}/tiflash/release-centos7-llvm/scripts/run-clang-tidy.py"
dir("${WORKSPACE}/build") {
Expand Down

0 comments on commit e2be0c5

Please sign in to comment.