From 9563e594c5a7a945df14f775eda7680a5faaf8ec Mon Sep 17 00:00:00 2001 From: Logan Bussell Date: Wed, 13 Apr 2022 17:43:13 -0700 Subject: [PATCH] [release/6.0.1xx] Retry source-build artifacts download on failure (#13591) * retry source-built artifacts download with curl --- src/SourceBuild/tarball/content/prep.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SourceBuild/tarball/content/prep.sh b/src/SourceBuild/tarball/content/prep.sh index e3225d309..56e00219f 100755 --- a/src/SourceBuild/tarball/content/prep.sh +++ b/src/SourceBuild/tarball/content/prep.sh @@ -79,13 +79,13 @@ while read -r line; do if [[ $line == *"Private.SourceBuilt.Artifacts"* ]]; then if [ "$downloadArtifacts" == "true" ]; then echo " Downloading source-built artifacts from $line..." - (cd $SCRIPT_ROOT/packages/archive/ && curl -O $line) + (cd $SCRIPT_ROOT/packages/archive/ && curl --retry 5 -O $line) fi fi if [[ $line == *"Private.SourceBuilt.Prebuilts"* ]]; then if [ "$downloadPrebuilts" == "true" ]; then echo " Downloading source-built prebuilts from $line..." - (cd $SCRIPT_ROOT/packages/archive/ && curl -O $line) + (cd $SCRIPT_ROOT/packages/archive/ && curl --retry 5 -O $line) fi fi done < $SCRIPT_ROOT/packages/archive/archiveArtifacts.txt