Commit 81273886 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'rf/retry' into 'master'

CI: pip install from git seems to fail sporadically - retry a few times before giving up

See merge request fsl/fsl-ci-rules!39
parents df5a17d4 39344778
......@@ -21,7 +21,7 @@ import subprocess as sp
import yaml
__version__ = '0.6.14'
__version__ = '0.6.15'
"""Current version of the fsl-ci-rules."""
......
......@@ -77,7 +77,13 @@
- if [ "$CI_PROJECT_PATH" == "fsl/fsl-ci-rules" ]; then
python -m pip install .;
else
python -m pip install --no-cache git+${CI_RULES_REPOSITORY};
for ((i=1; i<6; i++)); do
echo "Installing CI rules from git (attempt $i / 5)...";
(python -m pip install --no-cache git+${CI_RULES_REPOSITORY} && touch success) || true;
if [ -f success ]; then break; fi;
sleep 2;
done;
if [ ! -f success ]; then exit 1; fi;
fi
# Post-job - remove the custom config directory
......
Supports Markdown
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