UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit d9b0ba02 authored by Ryan Garcia's avatar Ryan Garcia :dizzy:
Browse files

Adding retries logic to terraform CI stages

parent b356ec9d
No related branches found
No related tags found
1 merge request!870Resolve "Add retry for RKE2 cluster creation/destruction"
......@@ -202,6 +202,12 @@ aws/network up:
environment:
name: review/aws-${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}
auto_stop_in: 1 hour
retry:
max: 2
when:
- unknown_failure
- script_failure
- stuck_or_timeout_failure
aws/network down:
extends:
......@@ -212,6 +218,12 @@ aws/network down:
environment:
name: review/aws-${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}
action: stop
retry:
max: 2
when:
- unknown_failure
- script_failure
- stuck_or_timeout_failure
#-----------------------------------------------------------------------------------------------------------------------
......@@ -232,6 +244,12 @@ aws/rke2/cluster up:
artifacts: true
environment:
name: review/aws-${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}
retry:
max: 2
when:
- unknown_failure
- script_failure
- stuck_or_timeout_failure
# Install BigBang on RKE2 cluster on AWS
aws/rke2/bigbang up:
......@@ -311,6 +329,12 @@ aws/rke2/cluster down:
artifacts: true
environment:
name: review/aws-${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}
retry:
max: 2
when:
- unknown_failure
- script_failure
- stuck_or_timeout_failure
#-----------------------------------------------------------------------------------------------------------------------
......
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