From 31c5388f27014869becd14cfc52a53d4f2ee6399 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 15 May 2014 07:14:37 +0900 Subject: [PATCH] Bug 1007991 - Enable sccache on mozilla-inbound and fx-team builds on AWS. r=mshal --- build/mozconfig.cache | 46 +++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/build/mozconfig.cache b/build/mozconfig.cache index 29d7cc4ef61..4333453a099 100644 --- a/build/mozconfig.cache +++ b/build/mozconfig.cache @@ -13,26 +13,34 @@ EOF bucket= if test -z "$SCCACHE_DISABLE" -a -z "$no_sccache"; then - case "${branch}_${master}" in - try_*scl1.mozilla.com*|try_*.scl3.mozilla.com*) - bucket=mozilla-releng-ceph-cache-scl3-try - mk_add_options "export SCCACHE_NO_HTTPS=1" + case "${branch}" in + try) + case "${master}" in + *scl1.mozilla.com*|*.scl3.mozilla.com*) + bucket=mozilla-releng-ceph-cache-scl3-try + mk_add_options "export SCCACHE_NO_HTTPS=1" + ;; + *use1.mozilla.com*) + bucket=mozilla-releng-s3-cache-us-east-1-try + ;; + *usw2.mozilla.com*) + bucket=mozilla-releng-s3-cache-us-west-2-try + ;; + esac ;; - try_*use1.mozilla.com*) - bucket=mozilla-releng-s3-cache-us-east-1-try - ;; - try_*usw2.mozilla.com*) - bucket=mozilla-releng-s3-cache-us-west-2-try - ;; - b2g-inbound_*use1.mozilla.com*) - if test -z "$MOZ_PGO"; then - bucket=mozilla-releng-s3-cache-us-east-1-prod - fi - ;; - b2g-inbound_*usw2.mozilla.com*) - if test -z "$MOZ_PGO"; then - bucket=mozilla-releng-s3-cache-us-west-2-prod - fi + b2g-inbound|mozilla-inbound|fx-team) + case "${master}" in + *use1.mozilla.com*) + if test -z "$MOZ_PGO"; then + bucket=mozilla-releng-s3-cache-us-east-1-prod + fi + ;; + *usw2.mozilla.com*) + if test -z "$MOZ_PGO"; then + bucket=mozilla-releng-s3-cache-us-west-2-prod + fi + ;; + esac ;; esac fi