Bug 1275276 - Fail if image context cannot be downloaded r=jhford draft
authorGregory Arndt <garndt@mozilla.com>
Tue, 24 May 2016 08:57:18 -0500
changeset 370314 0de27a48615b7abef4fa52e701a8e9d554c0cb00
parent 370313 f02ee7dd94e0f854e0c46d9df2b3b64775dcac68
child 521721 e62773766afec1157c9911b1a8b12c6635c58251
push id19030
push usergarndt@mozilla.com
push dateTue, 24 May 2016 13:57:47 +0000
reviewersjhford
bugs1275276
milestone49.0a1
Bug 1275276 - Fail if image context cannot be downloaded r=jhford MozReview-Commit-ID: DGOfH3MF2Sb
testing/docker/image_builder/VERSION
testing/docker/image_builder/bin/build_image.sh
--- a/testing/docker/image_builder/VERSION
+++ b/testing/docker/image_builder/VERSION
@@ -1,1 +1,1 @@
-0.1.4
+0.1.5
--- a/testing/docker/image_builder/bin/build_image.sh
+++ b/testing/docker/image_builder/bin/build_image.sh
@@ -16,17 +16,17 @@ raise_error() {
 # Ensure that the PROJECT is specified so the image can be indexed
 test -n "$PROJECT" || raise_error "Project must be provided."
 test -n "$HASH" || raise_error "Context Hash must be provided."
 
 mkdir /artifacts
 
 if [ ! -z "$CONTEXT_URL" ]; then
     mkdir /context
-    if ! curl -L --retry 5 --connect-timeout 30 "$CONTEXT_URL" | tar -xz --strip-components 1 -C /context; then
+    if ! curl -L --retry 5 --connect-timeout 30 --fail "$CONTEXT_URL" | tar -xz --strip-components 1 -C /context; then
         raise_error "Error downloading image context from decision task."
     fi
     CONTEXT_PATH=/context
 else
     tc-vcs checkout /home/worker/workspace/src $BASE_REPOSITORY $HEAD_REPOSITORY $HEAD_REV $HEAD_REF
     CONTEXT_PATH=/home/worker/workspace/src/$CONTEXT_PATH
 fi