Skip to content


8297000: [jib] Add more friendly warning for proxy issues
Browse files Browse the repository at this point in the history
Backport-of: 0d93ab9dff04409469faa26d5cdb29c4d6488537
  • Loading branch information
GoeLin committed Apr 18, 2023
1 parent 9eeb741 commit ff675cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/
Expand Up @@ -128,6 +128,15 @@ install_jib() {
exit 1
# Want to check the filetype using file, to see if we got served a HTML error page.
# This is sensitive to the filename containing a specific string, but good enough.
file ${installed_jib_script}.gz | grep "gzip compressed data" > /dev/null
if [ $? -ne 0 ]; then
echo "Warning: ${installed_jib_script}.gz is not a gzip file."
echo "If you are behind a proxy you may need to configure exceptions using no_proxy."
echo "The download URL was: ${jib_url}"
exit 1
echo "Extracting JIB bootstrap script"
rm -f "${installed_jib_script}"
gunzip "${installed_jib_script}.gz"
Expand Down

1 comment on commit ff675cc

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.