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>
--- 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