Bug 1492664 - update libdmg-hfsplus to use TASKCLUSTER_ROOT_URL; r=glandium

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dustin J. Mitchell 2018-12-18 17:26:45 +00:00
parent ca40021360
commit fec5b6f8ea

View File

@ -31,9 +31,16 @@ make -j$(getconf _NPROCESSORS_ONLN)
strip dmg/dmg hfs/hfsplus
cp dmg/dmg hfs/hfsplus $STAGE
# 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
cat >$STAGE/README<<EOF
Built from ${LIBDMG_REPOSITORY} rev `git rev-parse ${LIBDMG_REV}`.
Source is available as a taskcluster artifact:
https://queue.taskcluster.net/v1/task/$TASK_ID/artifacts/public/libdmg-hfsplus.tar.xz
$queue_base/task/$TASK_ID/artifacts/public/libdmg-hfsplus.tar.xz
EOF
tar cf - -C $WORKSPACE `basename $STAGE` | xz > $UPLOAD_DIR/dmg.tar.xz