[release/6.0.1xx] Retry source-build artifacts download on failure (#13591)
* retry source-built artifacts download with curl
This commit is contained in:
parent
12c30eeb32
commit
9563e594c5
1 changed files with 2 additions and 2 deletions
|
@ -79,13 +79,13 @@ while read -r line; do
|
||||||
if [[ $line == *"Private.SourceBuilt.Artifacts"* ]]; then
|
if [[ $line == *"Private.SourceBuilt.Artifacts"* ]]; then
|
||||||
if [ "$downloadArtifacts" == "true" ]; then
|
if [ "$downloadArtifacts" == "true" ]; then
|
||||||
echo " Downloading source-built artifacts from $line..."
|
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
|
||||||
fi
|
fi
|
||||||
if [[ $line == *"Private.SourceBuilt.Prebuilts"* ]]; then
|
if [[ $line == *"Private.SourceBuilt.Prebuilts"* ]]; then
|
||||||
if [ "$downloadPrebuilts" == "true" ]; then
|
if [ "$downloadPrebuilts" == "true" ]; then
|
||||||
echo " Downloading source-built prebuilts from $line..."
|
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
|
||||||
fi
|
fi
|
||||||
done < $SCRIPT_ROOT/packages/archive/archiveArtifacts.txt
|
done < $SCRIPT_ROOT/packages/archive/archiveArtifacts.txt
|
||||||
|
|
Loading…
Reference in a new issue