From 5d2447c661acf98f7cbd15c5afede5d760c9cbbc Mon Sep 17 00:00:00 2001 From: Jeff Boek Date: Tue, 26 Mar 2019 09:19:25 -0700 Subject: [PATCH] For #1005 - adds routes param to buildtask --- 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 b98f70b3f..bf4df70f1 100644 --- a/automation/taskcluster/lib/tasks.py +++ b/automation/taskcluster/lib/tasks.py @@ -15,7 +15,7 @@ class TaskBuilder(object): self.scheduler_id = scheduler_id self.build_worker_type = build_worker_type - def build_task(self, name, description, command, artifacts, features, scopes=[]): + def build_task(self, name, description, command, artifacts, features, scopes=[], routes=[]): created = datetime.datetime.now() expires = taskcluster.fromNow('1 year') deadline = taskcluster.fromNow('1 day') @@ -31,7 +31,7 @@ class TaskBuilder(object): "priority": "lowest", "deadline": taskcluster.stringDate(deadline), "dependencies": [self.task_id], - "routes": [], + "routes": routes, "scopes": scopes, "requires": "all-completed", "payload": {