diff --git a/Jenkinsfile b/Jenkinsfile index 9dc0a767fc5f9809399630bbb8d958c3503017f0..38583e65282bad98635f8140e375a6b307e5e3b1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -387,11 +387,13 @@ pipeline { npm install td2.0-connector > /dev/null 2>&1 node nodejsChecker.js host=localhost ''' - sh ''' - cd ${WKC}/tests/examples/C#/taosdemo - mcs -out:taosdemo *.cs > /dev/null 2>&1 - echo '' |./taosdemo -c /etc/taos - ''' + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + sh ''' + cd ${WKC}/tests/examples/C#/taosdemo + mcs -out:taosdemo *.cs > /dev/null 2>&1 + echo '' |./taosdemo -c /etc/taos + ''' + } sh ''' cd ${WKC}/tests/gotest bash batchtest.sh