trying to stop script on errors
This commit is contained in:
parent
ed69149119
commit
a0cd42f18c
1 changed files with 4 additions and 1 deletions
|
@ -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}
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue