Adapt servo/servo-taskcluster-experiments’s code for servo/servo

This commit is contained in:
Simon Sapin 2018-09-21 12:45:20 +02:00
parent 1492bacbca
commit a6fbab9c5b
2 changed files with 5 additions and 14 deletions

View file

@ -5,7 +5,7 @@ policy:
tasks:
- $if: 'tasks_for == "github-push"'
then:
$if: 'event.ref == "refs/heads/master"'
$if: 'event.ref in ["refs/heads/auto", "refs/heads/try"]'
then:
taskGroupId: {$eval: as_slugid("decision_task")}
taskId: {$eval: as_slugid("decision_task")}
@ -14,17 +14,17 @@ tasks:
created: {$fromNow: ''}
deadline: {$fromNow: '1 day'}
metadata:
name: "Taskcluster experiments for Servo: decision task"
name: "Servo: decision task"
description: ""
owner: &task_owner ${event.pusher.name}@users.noreply.github.com
source: &task_source ${event.compare}
scopes:
- "queue:scheduler-id:taskcluster-github"
# Granted to role "repo:github.com/servo/servo-taskcluster-experiments:branch:master"
# Granted to role "repo:github.com/servo/servo:branch:*"
- "queue:create-task:highest:aws-provisioner-v1/servo-*"
- "queue:route:index.project.servo.servo.*"
- "docker-worker:cache:cargo-*"
- "queue:route:index.project.servo.servo-taskcluster-experiments.*"
payload:
maxRunTime: {$eval: '20 * 60'}
@ -47,4 +47,4 @@ tasks:
cd repo &&
git fetch --depth 1 "$GIT_URL" "$GIT_REF" &&
git reset --hard "$GIT_SHA" &&
python3 decision-task.py
python3 etc/ci/taskcluster/decision-task.py