From 1aaf254ee82e25c1b8ea28c4b4c957181b4665f1 Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Mon, 25 Nov 2024 17:31:38 +0800 Subject: [PATCH] ci: set test step in ci when tdgpt file changed --- Jenkinsfile2 | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index b151930891..5f3acae08c 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -463,17 +463,19 @@ pipeline { WIN_SYSTEM_TEST_ROOT="C:\\workspace\\${env.EXECUTOR_NUMBER}\\TDinternal\\community\\tests\\system-test" } steps { - catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { - timeout(time: 126, unit: 'MINUTES'){ - if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) { - sh ''' - echo "skip windows test because of tdgpt codes changed" - ''' - } else { - pre_test_win() - pre_test_build_win() - run_win_ctest() - run_win_test() + script { + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + timeout(time: 126, unit: 'MINUTES'){ + if (file_no_doc_changed =~ /forecastoperator.c|anomalywindowoperator.c/) { + sh ''' + echo "skip windows test because of tdgpt codes changed" + ''' + } else { + pre_test_win() + pre_test_build_win() + run_win_ctest() + run_win_test() + } } } }