1 parent 85182ab commit 99324b6Copy full SHA for 99324b6
1 file changed
.circleci/config.yml
@@ -9,7 +9,8 @@ commands:
9
- run:
10
name: Destroy environment
11
# ${CIRCLE_WORKFLOW_ID} is a Built-in environment variable
12
- # ${CIRCLE_WORKFLOW_ID:0:5} takes the first 5 chars of the variable CIRCLE_CI_WORKFLOW_ID
+ # ${CIRCLE_WORKFLOW_ID:0:5} takes the first 5 chars of the variable CIRCLE_CI_WORKFLOW_ID:
13
+ when: on_fail
14
command: |
15
aws cloudformation delete-stack --stack-name myStack-${CIRCLE_WORKFLOW_ID:0:5}
16
@@ -68,8 +69,7 @@ jobs:
68
69
name: simulate error
70
71
return 1
- - destroy_environment:
72
- when: on_fail
+ - destroy_environment
73
# URL="https://blog.udacity.com/"
74
# # Test if website exists
75
# if curl -s --head ${URL}
0 commit comments