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:
parent
171da63eb2
commit
1231896520
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user