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} + """ } } }