diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-22 20:06:02 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-22 20:17:00 -0500 |
| commit | 3a6cd8e42ba605be53ca6d1cf1628085011f1ade (patch) | |
| tree | 97456561275ce4b0a3c824ce8a0213b4e0c24332 | |
| parent | 86f12c110b7dafe280cd06daa632011e871d5566 (diff) | |
| download | rust-3a6cd8e42ba605be53ca6d1cf1628085011f1ade.tar.gz rust-3a6cd8e42ba605be53ca6d1cf1628085011f1ade.zip | |
temporary retry around msys2 install
| -rwxr-xr-x | src/ci/scripts/install-msys2.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ci/scripts/install-msys2.sh b/src/ci/scripts/install-msys2.sh index c9fafc7fe6b..3a78ef209e4 100755 --- a/src/ci/scripts/install-msys2.sh +++ b/src/ci/scripts/install-msys2.sh @@ -12,8 +12,10 @@ IFS=$'\n\t' source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" if isWindows; then - choco install msys2 --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress - mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}" - - ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" + for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10; do + choco install msys2 \ + --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress \ + && mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}" \ + && ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" && break + done fi |
