Bug 1492664 - update diffoscope tasks to use TASKCLUSTER_ROOT_URL; r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D14211

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dustin J. Mitchell 2018-12-18 17:26:41 +00:00
parent 015e1e8538
commit cb69ce3a36

View File

@ -11,6 +11,13 @@ mkdir a b
# implemented, it's better to first manually extract the data.
# Plus dmg files are not supported yet.
# duplicate the functionality of taskcluster-lib-urls, but in bash..
if [ "$TASKCLUSTER_ROOT_URL" = "https://taskcluster.net" ]; then
queue_base='https://queue.taskcluster.net/v1'
else
queue_base="$TASKCLUSTER_ROOT_URL/api/queue/v1"
fi
case "$ORIG_URL" in
*/target.zip|*/target.apk)
curl -sL "$ORIG_URL" > a.zip
@ -26,7 +33,7 @@ case "$ORIG_URL" in
# We don't have mach available to call mach artifact toolchain.
# This is the trivial equivalent for those toolchains we use here.
for t in $MOZ_TOOLCHAINS; do
curl -sL https://queue.taskcluster.net/v1/task/${t#*@}/artifacts/${t%@*} | tar -Jxf -
curl -sL $queue_base/task/${t#*@}/artifacts/${t%@*} | tar -Jxf -
done
for tool in lipo otool; do
ln -s /builds/worker/cctools/bin/x86_64-apple-darwin*-$tool bin/$tool