зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d5d91aa3a430 (bug 1285529) because this only changed code that was backed out from bug 1278990 CLOSED TREE
This commit is contained in:
Родитель
9f18e385df
Коммит
854085c454
|
@ -40,46 +40,6 @@ if test -z "$SCCACHE_DISABLE" -a -z "$no_sccache" -a -z "$MOZ_PGO_IS_SET" -a -z
|
|||
esac
|
||||
fi
|
||||
|
||||
# taskcluster:
|
||||
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 || 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}
|
||||
;;
|
||||
*hg.mozilla.org/integration/mozilla-inbound*|*hg.mozilla.org/integration/fx-team*)
|
||||
bucket=taskcluster-level-3-sccache-${region}
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# set a dummy master
|
||||
case "${region}" in
|
||||
us-east-1)
|
||||
master=dummy.use1.mozilla.com
|
||||
;;
|
||||
us-west-1)
|
||||
master=dummy.usw1.mozilla.com
|
||||
;;
|
||||
us-west-2)
|
||||
master=dummy.usw2.mozilla.com
|
||||
;;
|
||||
esac
|
||||
|
||||
# set platform based on the SYSTEMROOT env var
|
||||
case "${SYSTEMROOT}" in
|
||||
*Windows)
|
||||
platform=windows
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if test -z "$bucket"; then
|
||||
case "$platform" in
|
||||
win*) : ;;
|
||||
|
|
Загрузка…
Ссылка в новой задаче