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}")
{
script {
try {
sh(script: "${SCRIPT_DIR}/run_ninja.py check-all")
} catch (e) {
success = false;
failure_message += "\n'ninja check-all' failed" // append as build might already be broken
echo e.toString()
if (success) {
// only run tests if build has passed, see #176
try {
sh(script: "${SCRIPT_DIR}/run_ninja.py check-all")
} catch (e) {
success = false;
failure_message += "\n'ninja check-all' failed" // append as build might already be broken
echo e.toString()
}
}
}
}