From 041bd8a8dadf6410bc7e005d38214072f908be26 Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Mon, 25 Nov 2024 20:07:56 +0800 Subject: [PATCH] ci: set test step in ci when tdgpt file changed --- Jenkinsfile2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index f163767557..5679015e32 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -471,6 +471,10 @@ pipeline { WIN_COMMUNITY_ROOT="C:\\workspace\\${env.EXECUTOR_NUMBER}\\TDinternal\\community" WIN_SYSTEM_TEST_ROOT="C:\\workspace\\${env.EXECUTOR_NUMBER}\\TDinternal\\community\\tests\\system-test" } + when { + beforeAgent true + expression { file_only_tdgpt_change_except != '' } + } steps { script { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { @@ -490,6 +494,10 @@ pipeline { } stage('mac test') { agent{label " Mac_catalina "} + when { + beforeAgent true + expression { file_only_tdgpt_change_except != '' } + } steps { script { catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {