We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c9d41e + 99170fb commit 21d1e30Copy full SHA for 21d1e30
src/SourceBuild/content/prep-source-build.sh
@@ -166,7 +166,23 @@ function DownloadArchive {
166
archiveUrl="https://builds.dotnet.microsoft.com/source-built-artifacts/assets/Private.SourceBuilt.$archiveType.$archiveVersion.$archiveRid.tar.gz"
167
168
echo " Downloading source-built $archiveType from $archiveUrl..."
169
- (cd "$packagesArchiveDir" && curl -f --retry 5 -O "$archiveUrl")
+ (
170
+ cd "$packagesArchiveDir" &&
171
+ for i in {1..5}; do
172
+ if curl -f --retry 5 -O "$archiveUrl"; then
173
+ exit 0
174
+ else
175
+ case $? in
176
+ 18)
177
+ sleep 3
178
+ ;;
179
+ *)
180
+ exit 1
181
182
+ esac
183
+ fi
184
+ done
185
+ )
186
elif [ "$isRequired" == true ]; then
187
echo " ERROR: $notFoundMessage"
188
exit 1
0 commit comments