Commit ed7cc489 authored by kawsark's avatar kawsark

added retry

parent f1e213d1
Pipeline #91127524 passed with stages
in 36 seconds
......@@ -73,6 +73,9 @@ workspace_vars:
if [ ! -z "$GOOGLE_CREDENTIALS" ]; then
sed -e "s/my-key/GOOGLE_CREDENTIALS/" -e "s/my-hcl/false/" -e "s/my-value/${GOOGLE_CREDENTIALS}/" -e "s/my-category/env/" -e "s/my-sensitive/true/" -e "s/my-workspace-id/${workspace_id}/" < api_templates/variable.json.template > variable.json;
curl --header "Authorization: Bearer ${TFC_TOKEN}" --header "Content-Type: application/vnd.api+json" --data @variable.json "https://${TFC_ADDR}/api/v2/vars"; fi
retry:
max: 1
when: script_failure
tags:
- curl
......@@ -90,7 +93,9 @@ config_version:
- echo "Upload URL is ${upload_url}"
- >
curl --request PUT -F '[email protected]' "${upload_url}"
retry:
max: 1
when: script_failure
tags:
- curl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment