ci: set test step in ci when tdgpt file changed

This commit is contained in:
chenhaoran 2024-11-26 09:20:06 +08:00
parent d390aec7ce
commit 9248276ff3
1 changed files with 10 additions and 22 deletions

View File

@ -478,12 +478,8 @@ pipeline {
expression { file_only_tdgpt_change_except != '' }
}
steps {
script {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
timeout(time: 126, unit: 'MINUTES'){
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
echo "skip windows test because of tdgpt codes changed"
} else {
pre_test_win()
pre_test_build_win()
run_win_ctest()
@ -492,8 +488,6 @@ pipeline {
}
}
}
}
}
stage('mac test') {
agent{label " Mac_catalina "}
when {
@ -501,20 +495,14 @@ pipeline {
expression { file_only_tdgpt_change_except != '' }
}
steps {
script {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
timeout(time: 60, unit: 'MINUTES'){
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
echo "skip mac test because of tdgpt codes changed"
} else {
pre_test()
pre_test_build_mac()
}
}
}
}
}
}
stage('linux test') {
agent{label "slave1_47 || slave1_48 || slave1_49 || slave1_50 || slave1_52 || slave1_59 || slave1_63 || worker03 || slave215 || slave217 || slave219 "}
options { skipDefaultCheckout() }