From 9248276ff3c15e89a98656e614879d6b71e8a7ce Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Tue, 26 Nov 2024 09:20:06 +0800 Subject: [PATCH] ci: set test step in ci when tdgpt file changed --- Jenkinsfile2 | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 0e816a3f05..c1e03b3440 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -478,18 +478,12 @@ 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() - run_win_test() - } - } + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + timeout(time: 126, unit: 'MINUTES'){ + pre_test_win() + pre_test_build_win() + run_win_ctest() + run_win_test() } } } @@ -501,16 +495,10 @@ 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() - } - } + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + timeout(time: 60, unit: 'MINUTES'){ + pre_test() + pre_test_build_mac() } } }