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.
This commit is contained in:
parent
a9049532a2
commit
38a10e3870
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue