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

Fail the task after delete the instance

parent 3de01dd7
No related branches found
No related tags found
1 merge request!10Add gitlab ci into project
...@@ -96,7 +96,7 @@ test: ...@@ -96,7 +96,7 @@ test:
- openstack server add floating ip $NEW_INSTANCE_ID $TEST_IP - openstack server add floating ip $NEW_INSTANCE_ID $TEST_IP
- > - >
wget https://$TEST_IP/Shibboleth.sso/Metadata --no-check-certificate -t 3 wget https://$TEST_IP/Shibboleth.sso/Metadata --no-check-certificate -t 3
|| (openstack server delete $NEW_INSTANCE_ID && openstack image delete $BUILT_OOD_IMAGE_ID) || (openstack server delete $NEW_INSTANCE_ID && openstack image delete $BUILT_OOD_IMAGE_ID && false)
- openstack server remove floating ip $NEW_INSTANCE_ID $TEST_IP - openstack server remove floating ip $NEW_INSTANCE_ID $TEST_IP
artifacts: artifacts:
reports: reports:
......
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