ci: set test step in ci when tdgpt file changed

This commit is contained in:
chenhaoran 2024-11-25 17:31:38 +08:00
parent 7688c3b7d9
commit 1aaf254ee8
1 changed files with 13 additions and 11 deletions

View File

@ -463,17 +463,19 @@ pipeline {
WIN_SYSTEM_TEST_ROOT="C:\\workspace\\${env.EXECUTOR_NUMBER}\\TDinternal\\community\\tests\\system-test" WIN_SYSTEM_TEST_ROOT="C:\\workspace\\${env.EXECUTOR_NUMBER}\\TDinternal\\community\\tests\\system-test"
} }
steps { steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { script {
timeout(time: 126, unit: 'MINUTES'){ catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) { timeout(time: 126, unit: 'MINUTES'){
sh ''' if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) {
echo "skip windows test because of tdgpt codes changed" sh '''
''' echo "skip windows test because of tdgpt codes changed"
} else { '''
pre_test_win() } else {
pre_test_build_win() pre_test_win()
run_win_ctest() pre_test_build_win()
run_win_test() run_win_ctest()
run_win_test()
}
} }
} }
} }