This commit is contained in:
Simon Sapin 2018-09-21 12:56:23 +02:00
parent 2e1a3b169b
commit 735c2fd5e5
2 changed files with 20 additions and 7 deletions

View file

@ -1,13 +1,23 @@
#!/bin/sh
task_id="$1"
artifact="$2"
#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set -o errexit
set -o nounset
set -o pipefail
task_id="${1}"
artifact="${2}"
shift 2
url="https://queue.taskcluster.net/v1/task/${task_id}/artifacts/public/${artifact}"
echo "Fetching $url" >&2
queue="https://queue.taskcluster.net/v1"
url="${queue}/task/${task_id}/artifacts/public/${artifact}"
echo "Fetching ${url}" >&2
curl \
--retry 5 \
--connect-timeout 10 \
--location \
--fail \
"$url" \
"$@"
"${url}" \
"${@}"