Commit 9e48dec4 authored by Aryaan Singh's avatar Aryaan Singh
Browse files

fix

parent 9e141430
Pipeline #71253 passed with stages
in 1 minute
......@@ -3,6 +3,7 @@
currentStatus=""
currentMessage=""
retryCount=0
maxRetry=7
# This logs the Azure CLI in using the configured service principal.
# az login --service-principal -u $ARM_CLIENT_ID -p $ARM_CLIENT_SECRET --tenant $ARM_TENANT_ID
......@@ -15,8 +16,7 @@ ENV_VAULT=$(az keyvault list --resource-group $RESOURCE_GROUP_NAME --query [].na
IFS=',' read -r -a partitions_array <<< ${PARTITIONS}
#!/bin/bash
while [[ $retryCount -lt 7 ]]; do
while [[ $retryCount -lt $maxRetry ]]; do
retryCount=$(expr $retryCount + 1)
for index in "${!partitions_array[@]}"
......@@ -99,12 +99,9 @@ while [[ $retryCount -lt 7 ]]; do
if [ -z "$currentStatus" -a "$currentStatus"==" " ]; then
break
elif [[ $retryCount -ge 3 ]]; then
elif [[ $retryCount -ge $maxRetry ]]; then
currentMessage="${currentMessage}. Iteration not successful, Retry Count: $retryCount."
echo "Iteration not successful, Retry Count: $retryCount."
echo "Sleeping for 1min."
sleep 1m
break
echo "Iteration not successful, Retry Count: $retryCount, Aborting..."
else
currentStatus=""
currentMessage="${currentMessage}. Iteration not successful, Retry Count: $retryCount, Retrying..."
......
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