Skip to content

Commit ae3971c

Browse files
authored
Add single retry for dotnet-install.sh
1 parent 50b6a9b commit ae3971c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/vstest/runtests.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/usr/bin/env bash
2-
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version $2 --no-cdn --install-dir $HELIX_CORRELATION_PAYLOAD/sdk
3-
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version $3 --no-cdn --install-dir $HELIX_CORRELATION_PAYLOAD/sdk
2+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version $2 --install-dir $HELIX_CORRELATION_PAYLOAD/sdk
3+
if [ $retVal -ne 0 ]; then
4+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --version $2 --install-dir $HELIX_CORRELATION_PAYLOAD/sdk
5+
fi
6+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version $3 --install-dir $HELIX_CORRELATION_PAYLOAD/sdk
7+
if [ $retVal -ne 0 ]; then
8+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --runtime dotnet --version $3 --install-dir $HELIX_CORRELATION_PAYLOAD/sdk
9+
fi
10+
411
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
512

613
# Ensures every invocation of dotnet apps uses the same dotnet.exe

0 commit comments

Comments
 (0)