summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-01-07 10:36:53 +0000
committerRémy Coutable <remy@rymai.me>2019-01-07 10:36:53 +0000
commit25d98e9d819c83d4bfe2b70b85e8d08b5ceb4dd7 (patch)
tree7363cd956aec7e11545206cec387bc771962ed47 /scripts
parent465b3041e71f2e454d9e7d6c154455f5ece14f38 (diff)
parent38a10e387021024e35d1985aebe3d50591d9a6c9 (diff)
downloadgitlab-ce-25d98e9d819c83d4bfe2b70b85e8d08b5ceb4dd7.tar.gz
Merge branch 'exit-error-if-job-waited-fails' into 'master'
Exit `wait_for_job_to_be_done` as error if the job fails See merge request gitlab-org/gitlab-ce!23997
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/review_apps/review-apps.sh1
1 files changed, 1 insertions, 0 deletions
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