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,18 +478,12 @@ pipeline {
expression { file_only_tdgpt_change_except != '' } expression { file_only_tdgpt_change_except != '' }
} }
steps { steps {
script { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { timeout(time: 126, unit: 'MINUTES'){
timeout(time: 126, unit: 'MINUTES'){ pre_test_win()
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) { pre_test_build_win()
echo "skip windows test because of tdgpt codes changed" run_win_ctest()
} else { run_win_test()
pre_test_win()
pre_test_build_win()
run_win_ctest()
run_win_test()
}
}
} }
} }
} }
@ -501,16 +495,10 @@ pipeline {
expression { file_only_tdgpt_change_except != '' } expression { file_only_tdgpt_change_except != '' }
} }
steps { steps {
script { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { timeout(time: 60, unit: 'MINUTES'){
timeout(time: 60, unit: 'MINUTES'){ pre_test()
if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) { pre_test_build_mac()
echo "skip mac test because of tdgpt codes changed"
} else {
pre_test()
pre_test_build_mac()
}
}
} }
} }
} }