From 38a10e387021024e35d1985aebe3d50591d9a6c9 Mon Sep 17 00:00:00 2001 From: Mark Lapierre Date: Fri, 21 Dec 2018 18:30:52 +0000 Subject: Exit as error if job fails If a script is waiting for a job to be done and that job fails, exit with an error status so that the script doesn't continue with a prerequisite in an invalid state. --- scripts/review_apps/review-apps.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh index 9e52366f800..118a7c7f638 100755 --- a/scripts/review_apps/review-apps.sh +++ b/scripts/review_apps/review-apps.sh @@ -344,6 +344,7 @@ function wait_for_job_to_be_done() { if [[ "${job_status}" == "failed" ]]; then echo "The '${job_name}' failed." + exit 1 elif [[ "${job_status}" == "manual" ]]; then echo "The '${job_name}' is manual." else -- cgit v1.2.1