1
0
Fork 0

only run tests if build has passed

this relates to #176
This commit is contained in:
Christian Kühnel 2020-05-06 17:24:05 +02:00
parent 795d8270f7
commit f1c697c299

View file

@ -110,12 +110,15 @@ pipeline {
dir("${LLVM_DIR}") dir("${LLVM_DIR}")
{ {
script { script {
try { if (success) {
sh(script: "${SCRIPT_DIR}/run_ninja.py check-all") // only run tests if build has passed, see #176
} catch (e) { try {
success = false; sh(script: "${SCRIPT_DIR}/run_ninja.py check-all")
failure_message += "\n'ninja check-all' failed" // append as build might already be broken } catch (e) {
echo e.toString() success = false;
failure_message += "\n'ninja check-all' failed" // append as build might already be broken
echo e.toString()
}
} }
} }
} }