Răsfoiți Sursa

Use 5 retries in curl (#23112)

Hao Kung 5 ani în urmă
părinte
comite
0a02cd88b7

+ 2 - 2
eng/helix/content/installjdk.sh

@@ -37,10 +37,10 @@ cleanup() {
 
 trap "cleanup" EXIT
 cd "$tmp"
-curl -Lsfo $(basename $url) "$url"
+curl -Lsfo $(basename $url) "$url" --retry 5
 echo "Installing java from $(basename $url) $url"
 mkdir $output_dir
 echo "Unpacking to $output_dir"
 tar --strip-components 1 -xzf "jdk-${java_version}_${platformarch}_bin.tar.gz" --no-same-owner --directory "$output_dir"
 
-popd
+popd

+ 1 - 1
eng/helix/content/installnode.sh

@@ -34,7 +34,7 @@ cleanup() {
 
 trap "cleanup" EXIT
 cd "$tmp"
-curl -Lsfo $(basename $url) "$url"
+curl -Lsfo $(basename $url) "$url" --retry 5
 echo "Installing node from $(basename $url) $url"
 mkdir $output_dir
 echo "Unpacking to $output_dir"

+ 1 - 1
eng/scripts/install-nginx-linux.sh

@@ -6,7 +6,7 @@ scriptroot="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 reporoot="$(dirname "$(dirname "$scriptroot")")"
 nginxinstall="$reporoot/.tools/nginx"
 
-curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
+curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz --retry 5 | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
 ./configure --prefix=$nginxinstall --with-http_ssl_module --without-http_rewrite_module
 make
 make install