From c49b3609b5b38a7b87b3c42fcc92e10b6fec0b5a Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Wed, 15 Sep 2021 15:22:37 +0800 Subject: [PATCH] udpate jenkins --- Jenkinsfile | 3 ++- tests/pytest/test-all.bat | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b52c34628c..b01497ead3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -464,8 +464,9 @@ pipeline { stage('test'){ agent{label "win"} steps{ - pre_test_win() + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + pre_test_win() bat''' cd C:\\workspace\\TDinternal\\community\\tests\\pytest .\\test-all.bat Wintest diff --git a/tests/pytest/test-all.bat b/tests/pytest/test-all.bat index 31c69e9c95..1f1e2c1727 100644 --- a/tests/pytest/test-all.bat +++ b/tests/pytest/test-all.bat @@ -7,6 +7,7 @@ for /F "usebackq tokens=*" %%i in (fulltest.bat) do ( if errorlevel 1 ( call :colorEcho 0c "failed" &echo. && exit 8 ) else ( call :colorEcho 0a "Success" &echo. ) ) exit + :colorEcho echo off "%~2" -- GitLab