Skip to content

Commit 3a6cd8e

Browse files
temporary retry around msys2 install
1 parent 86f12c1 commit 3a6cd8e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ci/scripts/install-msys2.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ IFS=$'\n\t'
1212
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
1313

1414
if isWindows; then
15-
choco install msys2 --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress
16-
mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}"
17-
18-
ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin"
15+
for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10; do
16+
choco install msys2 \
17+
--params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress \
18+
&& mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}" \
19+
&& ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" && break
20+
done
1921
fi

0 commit comments

Comments
 (0)