We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6ad6a commit 55095bcCopy full SHA for 55095bc
hack/_azure-set-vars.sh
@@ -46,10 +46,18 @@ get_or_create_vargroup() {
46
echo "$group_id"
47
}
48
49
-VARGROUP_ID=$(get_or_create_vargroup "$AZURE_VARIABLE_GROUP_NAME")
50
-if [[ -z $VARGROUP_ID ]]; then
51
- echo "Variable group creation sometimes fails despite succeeding, trying again..." >&2
+for _ in {1..3}; do
52
VARGROUP_ID=$(get_or_create_vargroup "$AZURE_VARIABLE_GROUP_NAME")
+ if [[ -n $VARGROUP_ID ]]; then
+ break
53
+ fi
54
+
55
+ echo "Variable group creation sometimes fails despite succeeding, trying again..." >&2
56
+done
57
58
+if [[ -z $VARGROUP_ID ]]; then
59
+ echo "Failed to get the variable group ID" >&2
60
+ exit 1
61
fi
62
63
set_var() {
0 commit comments