Skip to content

Commit

Permalink
openstack: Fail the job if cluster delete fails
Browse files Browse the repository at this point in the history
We do not want to merge code that breaks cluster delete. As such,
check the exit code from cluster delete, and fail the job if it
is nozero.
  • Loading branch information
trown committed Apr 18, 2019
1 parent b6891d5 commit aaa22f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,13 @@ objects:
echo "Deprovisioning cluster ..."
openshift-install --dir /tmp/artifacts/installer destroy cluster
DELETE_FAIL=$?
echo "Nuking any resources left"
nuke
}
trap 'teardown' EXIT
trap 'teardown; exit $DELETE_FAIL' EXIT
trap 'kill $(jobs -p); exit 0' TERM
for i in $(seq 1 180); do
Expand Down

0 comments on commit aaa22f1

Please sign in to comment.