Skip to content

Commit 0a02cd8

Browse files
authored
Use 5 retries in curl (#23112)
1 parent 0dc6aa6 commit 0a02cd8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

eng/helix/content/installjdk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ cleanup() {
3737

3838
trap "cleanup" EXIT
3939
cd "$tmp"
40-
curl -Lsfo $(basename $url) "$url"
40+
curl -Lsfo $(basename $url) "$url" --retry 5
4141
echo "Installing java from $(basename $url) $url"
4242
mkdir $output_dir
4343
echo "Unpacking to $output_dir"
4444
tar --strip-components 1 -xzf "jdk-${java_version}_${platformarch}_bin.tar.gz" --no-same-owner --directory "$output_dir"
4545

46-
popd
46+
popd

eng/helix/content/installnode.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cleanup() {
3434

3535
trap "cleanup" EXIT
3636
cd "$tmp"
37-
curl -Lsfo $(basename $url) "$url"
37+
curl -Lsfo $(basename $url) "$url" --retry 5
3838
echo "Installing node from $(basename $url) $url"
3939
mkdir $output_dir
4040
echo "Unpacking to $output_dir"

eng/scripts/install-nginx-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ scriptroot="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66
reporoot="$(dirname "$(dirname "$scriptroot")")"
77
nginxinstall="$reporoot/.tools/nginx"
88

9-
curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
9+
curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz --retry 5 | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
1010
./configure --prefix=$nginxinstall --with-http_ssl_module --without-http_rewrite_module
1111
make
1212
make install

0 commit comments

Comments
 (0)