Commit 25d98e9d authored by Rémy Coutable's avatar Rémy Coutable

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
parents 465b3041 38a10e38
...@@ -344,6 +344,7 @@ function wait_for_job_to_be_done() { ...@@ -344,6 +344,7 @@ function wait_for_job_to_be_done() {
if [[ "${job_status}" == "failed" ]]; then if [[ "${job_status}" == "failed" ]]; then
echo "The '${job_name}' failed." echo "The '${job_name}' failed."
exit 1
elif [[ "${job_status}" == "manual" ]]; then elif [[ "${job_status}" == "manual" ]]; then
echo "The '${job_name}' is manual." echo "The '${job_name}' is manual."
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment