2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-07 15:20:38 +00:00

TaskBuilder.build_task(): Add scopes parameter.

This commit is contained in:
Sebastian Kaspari 2019-01-30 16:25:26 +01:00 committed by Colin Lee
parent 171da63eb2
commit 1231896520

View File

@ -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,