mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
add a retry loop (mostly for parallel pipelines tests where this can generate too many requests errors)
This commit is contained in:
@@ -33,4 +33,8 @@ if [[ $1 == "--dev" ]]; then
|
||||
fi
|
||||
|
||||
echo "Installing collections from galaxy..."
|
||||
pipenv run ansible-galaxy collection install --upgrade --verbose --requirements-file requirements.yml
|
||||
galaxy_retry_count=0
|
||||
until [[ $galaxy_retry_count -gt 2 ]]; do
|
||||
pipenv run ansible-galaxy collection install --upgrade --verbose --requirements-file requirements.yml && break
|
||||
galaxy_retry_count=$((galaxy_retry_count + 1))
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user