Bug 1285529 - Do not set SCCACHE when CCACHE_DIR is there r=grenade
☠☠ backed out by 751186781016 ☠ ☠
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 08 Jul 2016 15:46:04 +0200
changeset 344266 ae11e3061f5b12a1fe131c5bedaa57ea3be9970a
parent 344265 b54fe0985395c0d5fe51c44c10eaf8e228e7f609
child 344267 229cd3b8bf5dcca4c514fe7315fdf0ac6fa31541
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgrenade
bugs1285529
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1285529 - Do not set SCCACHE when CCACHE_DIR is there r=grenade MozReview-Commit-ID: DyhZeaqgUua
build/mozconfig.cache
--- a/build/mozconfig.cache
+++ b/build/mozconfig.cache
@@ -38,20 +38,20 @@ if test -z "$SCCACHE_DISABLE" -a -z "$no
             bucket=mozilla-releng-s3-cache-us-west-2-prod
             ;;
         esac
         ;;
     esac
 fi
 
 # taskcluster:
-else
+elif test -z "$CCACHE_DIR"; then
     # 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}
             ;;