From 78b58d5a329a22659f61e8b8e63e84f0713d9ab9 Mon Sep 17 00:00:00 2001 From: Rob Lemley Date: Wed, 31 Mar 2021 20:19:03 +0000 Subject: [PATCH] Bug 1681607 - Set taskgraph parameters for Jamun. r=justdave Differential Revision: https://phabricator.services.mozilla.com/D110465 --- taskcluster/comm_taskgraph/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/taskcluster/comm_taskgraph/__init__.py b/taskcluster/comm_taskgraph/__init__.py index c0bdb98a0e..0331cddc4e 100644 --- a/taskcluster/comm_taskgraph/__init__.py +++ b/taskcluster/comm_taskgraph/__init__.py @@ -21,6 +21,14 @@ COMM_SCRIPTS = os.path.join(COMM, "taskcluster", "scripts") BALROG_PRODUCT = "Thunderbird" +PER_PROJECT_PARAMETERS = { + "jamun": { + "target_tasks_method": "nightly_desktop", + "release_type": "nightly", + }, +} + + def register(graph_config): """ Import all modules that are siblings of this one, triggering decorators in @@ -51,6 +59,9 @@ def get_decision_parameters(graph_config, parameters): # An empty release_history is fine, it just means no partials will be built project = parameters["project"] + if project in PER_PROJECT_PARAMETERS: + parameters.update(PER_PROJECT_PARAMETERS[project]) + parameters.setdefault("release_history", dict()) if "nightly" in parameters.get("target_tasks_method", ""): parameters["release_history"] = populate_release_history(