Skip to content
Snippets Groups Projects
Commit b39a46b7 authored by Ian Baum's avatar Ian Baum Committed by Balasankar C
Browse files

Add error message when download in download-package fails

* Currently we silently ignore the error, which can be difficult to
  debug as it only bubbles up later in the image build process
parent a3d27fc2
No related branches found
No related tags found
No related merge requests found
---
title: Error during docker build on package download failure
merge_request: 4641
author:
type: fixed
Loading
Loading
@@ -9,3 +9,9 @@ else
# to authenticate to access it. Hence, we pass PRIVATE-TOKEN header.
wget --quiet --header "PRIVATE-TOKEN: ${TRIGGER_PRIVATE_TOKEN}" ${DOWNLOAD_URL} -O /tmp/gitlab.deb
fi
results=$?
if [ ${results} -ne 0 ]; then
>&2 echo "There was an error downloading ${DOWNLOAD_URL}. Please check the output for more information"
exit ${results}
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment