From 1231896520642d60832cfe21a248c5b1687394e0 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Wed, 30 Jan 2019 16:25:26 +0100 Subject: [PATCH] TaskBuilder.build_task(): Add scopes parameter. --- automation/taskcluster/lib/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/taskcluster/lib/tasks.py b/automation/taskcluster/lib/tasks.py index bdb78224c..c5074a4b5 100644 --- a/automation/taskcluster/lib/tasks.py +++ b/automation/taskcluster/lib/tasks.py @@ -14,7 +14,7 @@ class TaskBuilder(object): self.source = source self.scheduler_id = scheduler_id - def build_task(self, name, description, command, artifacts, features, worker_type): + def build_task(self, name, description, command, artifacts, features, worker_type, scopes=[]): created = datetime.datetime.now() expires = taskcluster.fromNow('1 year') deadline = taskcluster.fromNow('1 day') @@ -31,7 +31,7 @@ class TaskBuilder(object): "deadline": taskcluster.stringDate(deadline), "dependencies": [self.task_id], "routes": [], - "scopes": [], + "scopes": scopes, "requires": "all-completed", "payload": { "features": features,