Skip to content
Snippets Groups Projects
Commit e86c2385 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Add DELETE_WHEN_FAILED variable

parent db37df3f
No related branches found
No related tags found
1 merge request!72Add debug flag
Pipeline #9696 failed with stages
in 2 hours and 33 seconds
...@@ -301,8 +301,10 @@ test_ood_image: ...@@ -301,8 +301,10 @@ test_ood_image:
fi fi
- | - |
if [ "$FAILED" = true ]; then if [ "$FAILED" = true ]; then
openstack server delete $NEW_INSTANCE_ID if [ "${DELETE_WHEN_FAILED-true}" = true ]; then
openstack image delete $BUILT_OOD_IMAGE_ID openstack server delete $NEW_INSTANCE_ID
openstack image delete $BUILT_OOD_IMAGE_ID
fi
false false
fi fi
- | - |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment