From a0cd42f18cd9692a4416cc0c6c4c16fcf82351d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Thu, 16 Jan 2020 11:31:12 +0100 Subject: [PATCH] trying to stop script on errors --- Jenkins/Phabricator-windows-pipeline/Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkins/Phabricator-windows-pipeline/Jenkinsfile b/Jenkins/Phabricator-windows-pipeline/Jenkinsfile index f998d3e..ac09c1a 100644 --- a/Jenkins/Phabricator-windows-pipeline/Jenkinsfile +++ b/Jenkins/Phabricator-windows-pipeline/Jenkinsfile @@ -56,7 +56,10 @@ pipeline { stage('arc patch'){ steps { dir("${LLVM_DIR}"){ - powershell "python3 ${SCRIPT_DIR}/phabtalk/apply_patch2.py --comment-file ${PHAB_LOG} --token ${CONDUIT_TOKEN} --url ${PHABRICATOR_HOST} ${DIFF_ID}" + powershell """ + \$ErrorActionPreference = 'Stop' + python3 ${SCRIPT_DIR}/phabtalk/apply_patch2.py --comment-file ${PHAB_LOG} --token ${CONDUIT_TOKEN} --url ${PHABRICATOR_HOST} ${DIFF_ID} + """ } } }