Bug 1319240 - Create tasks that publish l10n desktop jobs to balrog. r=kmoir draft
authorJustin Wood <Callek@gmail.com>
Mon, 21 Nov 2016 17:36:17 -0500
changeset 442162 6d971614e10d685a83069f964bd03a21fe85d474
parent 442154 7cd0fb550943b9d17d95e096af12e14d6c20fdbf
child 537719 38ecb46fa57d62a1db4dd48950f3b486f66b10cb
push id36608
push userCallek@gmail.com
push dateMon, 21 Nov 2016 22:36:39 +0000
reviewerskmoir
bugs1319240
milestone53.0a1
Bug 1319240 - Create tasks that publish l10n desktop jobs to balrog. r=kmoir MozReview-Commit-ID: IVGbyKz7lrs
taskcluster/ci/balrog-l10n/kind.yml
taskcluster/taskgraph/task/balrog.py
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/balrog-l10n/kind.yml
@@ -0,0 +1,12 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+implementation: taskgraph.task.balrog:BalrogTask
+
+transforms:
+   - taskgraph.transforms.balrog:transforms
+   - taskgraph.transforms.task:transforms
+
+kind-dependencies:
+  - beetmover-l10n
--- a/taskcluster/taskgraph/task/balrog.py
+++ b/taskcluster/taskgraph/task/balrog.py
@@ -10,19 +10,20 @@ from . import transform
 class BalrogTask(transform.TransformTask):
     """
     A task implementing a balrog submission job.  These depend on beetmover jobs
     and submits the update to balrog as available after the files are moved into place
     """
 
     @classmethod
     def get_inputs(cls, kind, path, config, params, loaded_tasks):
-        if config.get('kind-dependencies', []) != ["beetmover"]:
+        if config.get('kind-dependencies', []) != ["beetmover"] and \
+           config.get('kind-dependencies', []) != ["beetmover-l10n"]:
             raise Exception("Balrog kinds must depend on beetmover kinds")
         for task in loaded_tasks:
             if not task.attributes.get('nightly'):
                 continue
-            if task.kind != "beetmover":
+            if task.kind not in config.get('kind-dependencies', []):
                 continue
             beetmover_task = {}
             beetmover_task['dependent-task'] = task
 
             yield beetmover_task