From 3a6cd8e42ba605be53ca6d1cf1628085011f1ade Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sun, 22 Dec 2019 20:06:02 -0500 Subject: temporary retry around msys2 install --- src/ci/scripts/install-msys2.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/ci/scripts') 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 -- cgit 1.4.1-3-g733a5