Bug 1285529 - Ensure wget failure do not break us r?grenade draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 08 Jul 2016 15:46:04 +0200
changeset 385534 30d223ee0376d3f3759ce7d96ce35cfc195337a3
parent 385503 04ee49f5bd4a16e88eefcb1ca8e890274d25593d
child 385535 525d6a76fb3f53af58b8a60cc9e2878115551dba
push id22522
push userrthijssen@mozilla.com
push dateFri, 08 Jul 2016 15:30:43 +0000
reviewersgrenade
bugs1285529
milestone50.0a1
Bug 1285529 - Ensure wget failure do not break us r?grenade MozReview-Commit-ID: DyhZeaqgUua
build/mozconfig.cache
--- a/build/mozconfig.cache
+++ b/build/mozconfig.cache
@@ -41,17 +41,17 @@ if test -z "$SCCACHE_DISABLE" -a -z "$no
         ;;
     esac
 fi
 
 # taskcluster:
 else
     # timeout after 1 second, and don't retry (failure indicates instance is not in ec2 or wget, network issue)
     # availability_zone is of the form <region><letter> where region is e.g. us-west-2, and az is us-west-2a
-    availability_zone=$(wget -T 1 -t 1 -q -O - http://169.254.169.254/latest/meta-data/placement/availability-zone)
+    availability_zone=$(wget -T 1 -t 1 -q -O - http://169.254.169.254/latest/meta-data/placement/availability-zone || true)
     # region is az with last letter trimmed
     region=${availability_zone%?}
     if test -z "$SCCACHE_DISABLE" -a -z "$no_sccache" -a -z "$MOZ_PGO_IS_SET" -a -z "$MOZ_PGO"; then
         # set S3 bucket according to tree (level)
         case "${GECKO_HEAD_REPOSITORY}" in
         *hg.mozilla.org/try*)
             bucket=taskcluster-level-1-sccache-${region}
             ;;