ci: set test step in ci when tdgpt file changed
This commit is contained in:
parent
7688c3b7d9
commit
1aaf254ee8
24
Jenkinsfile2
24
Jenkinsfile2
|
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue