Bug 1319240 - Create tasks that publish l10n desktop jobs to balrog. r=kmoir
MozReview-Commit-ID: IVGbyKz7lrs
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