8156733: JIB fails to follow redirects
authorerikj
Wed, 11 May 2016 13:42:31 +0200
changeset 37862 bc9aa7bc5385
parent 37861 53d85619d7fe
child 37863 e5e036fff56c
8156733: JIB fails to follow redirects Summary: Make jib more resilient, let it follow redirects, and handle network hickups with 3 retries. Reviewed-by: erikj Contributed-by: Stefan Sarne <stefan.sarne@oracle.com>
common/bin/jib.sh
--- a/common/bin/jib.sh	Tue May 10 13:34:30 2016 +0100
+++ b/common/bin/jib.sh	Wed May 11 13:42:31 2016 +0200
@@ -89,7 +89,7 @@
     fi
 
     if command -v curl > /dev/null; then
-        getcmd="curl -s"
+        getcmd="curl -s -L --retry 3 --retry-delay 5"
     elif command -v wget > /dev/null; then
         getcmd="wget --quiet -O -"
     else