taskcluster/docker/funsize-update-generator/runme.sh
author Wes Kocher <wkocher@mozilla.com>
Mon, 11 Sep 2017 17:35:09 -0700
changeset 380171 bda524beac249b64aa36016800502a34073bf35a
parent 379989 taskcluster/docker/partial-update-generator/runme.sh@01bf0c29331e6bbee4a7bf674010ea1ebc41cb55
child 381533 948dc86aabc97e16d51ad19ea90debab6f93a628
permissions -rw-r--r--
Backed out 2 changesets (bug 1342392) for bustage a=backout Backed out changeset b0e86286b173 (bug 1342392) Backed out changeset 01bf0c29331e (bug 1342392) MozReview-Commit-ID: 71fcOZ2RgEp

#!/bin/sh

set -xe

test $TASK_ID
test $SHA1_SIGNING_CERT
test $SHA384_SIGNING_CERT

ARTIFACTS_DIR="/home/worker/artifacts"
mkdir -p "$ARTIFACTS_DIR"

curl --location --retry 10 --retry-delay 10 -o /home/worker/task.json \
    "https://queue.taskcluster.net/v1/task/$TASK_ID"

# enable locale cache
export MBSDIFF_HOOK="/home/worker/bin/mbsdiff_hook.sh -c /tmp/fs-cache"

if [ ! -z $FILENAME_TEMPLATE ]; then
    EXTRA_PARAMS="--filename-template $FILENAME_TEMPLATE $EXTRA_PARAMS"
fi

/home/worker/bin/funsize.py \
    --artifacts-dir "$ARTIFACTS_DIR" \
    --task-definition /home/worker/task.json \
    --sha1-signing-cert "/home/worker/keys/${SHA1_SIGNING_CERT}.pubkey" \
    --sha384-signing-cert "/home/worker/keys/${SHA384_SIGNING_CERT}.pubkey" \
    $EXTRA_PARAMS