Make artifact download fail on non-successful HTTP status codes

This commit is contained in:
Simon Sapin 2018-09-20 19:14:51 +02:00
parent c7234642a3
commit 72cbc0e6e1
2 changed files with 3 additions and 10 deletions

View file

@ -89,12 +89,12 @@ def main():
def create_run_task(*, script, env=None, **kwargs):
fetch_build = """
mkdir -p target/release
curl \
"https://queue.taskcluster.net/v1/task/${BUILD_TASK_ID}/artifacts/public/servo.gz" \
"https://queue.taskcluster.net/v1/task/${BUILD_TASK_ID}/artifacts/public/servo.tar.gz" \
--retry 5 \
--connect-timeout 10 \
--location \
--fail \
| tar -xz
"""
decision.create_task(
@ -112,14 +112,6 @@ def main():
create_run_task(
task_name="Linux x86_64: WPT chunk %s / %s" % (chunk, total_chunks),
script="""
mkdir -p target/release
curl \
"https://queue.taskcluster.net/v1/task/${BUILD_TASK_ID}/artifacts/public/servo.gz" \
--retry 5 \
--connect-timeout 10 \
--location \
| gunzip > target/release/servo
./mach test-wpt \
--release \
--processes 24 \