Skip to content

Commit

Permalink
Merge pull request #3527 from trown/fail-delete-fails
Browse files Browse the repository at this point in the history
openstack: Fail the job if `destroy cluster` fails
  • Loading branch information
openshift-merge-robot committed Apr 26, 2019
2 parents 9f9a8f9 + aaa22f1 commit 7557a2a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,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 7557a2a

Please sign in to comment.