From 4b8e487612fe118bb92d807feab96a7e69f36c3b Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Wed, 15 Sep 2021 08:46:29 +0800 Subject: [PATCH] update jenkins --- Jenkinsfile | 10 ++++++---- tests/pytest/test-all.bat | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7d6fc45bf1..25251338b5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -459,10 +459,12 @@ pipeline { agent{label "win"} steps{ pre_test_win() - bat''' - cd C:\\workspace\\TDinternal\\community\\tests\\pytest - test-all.bat CrashGen - ''' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + bat''' + cd C:\\workspace\\TDinternal\\community\\tests\\pytest + test-all.bat CrashGen + ''' + } script{ win_stop=1 println win_stop diff --git a/tests/pytest/test-all.bat b/tests/pytest/test-all.bat index 1b9b976c27..1f1e2c1727 100644 --- a/tests/pytest/test-all.bat +++ b/tests/pytest/test-all.bat @@ -4,7 +4,7 @@ for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) for /F "usebackq tokens=*" %%i in (fulltest.bat) do ( echo Processing %%i call %%i ARG1 -w 1 -m %1 > result.txt 2>error.txt - if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 3 ) else ( call :colorEcho 0a "Success" &echo. ) + if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 8 ) else ( call :colorEcho 0a "Success" &echo. ) ) exit -- GitLab