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

--HG--
extra : rebase_source : c81ea68802e516744d10799d20059a3f019a4d23
extra : source : 4c63a04fdd47c7cb8dc7350ae7fd6d861b525a2d
This commit is contained in:
Dustin J. Mitchell 2018-10-02 15:52:28 +00:00
Родитель 60d0a26a65
Коммит ffd4136773
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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