Bug 1410513: Use try_tasks as target method on try-comm-central; r?dustin draft
authorTom Prince <mozilla@hocat.ca>
Thu, 02 Nov 2017 15:02:49 -0600
changeset 693752 1127bce0340da41426b89fb04bc63cef51e4c14d
parent 693751 f993b9f8f20c13aa55c5abc9d39a22c92f68bf3a
child 693753 feafd4cd37b484f6679ae1d038b909d16f89334f
push id87900
push userbmo:mozilla@hocat.ca
push dateMon, 06 Nov 2017 19:45:00 +0000
reviewersdustin
bugs1410513
milestone58.0a1
Bug 1410513: Use try_tasks as target method on try-comm-central; r?dustin MozReview-Commit-ID: 5nh5qAcBqQJ
taskcluster/taskgraph/decision.py
--- a/taskcluster/taskgraph/decision.py
+++ b/taskcluster/taskgraph/decision.py
@@ -34,16 +34,20 @@ PER_PROJECT_PARAMETERS = {
         # `--include-nightly` is specified in the commit message.
         # We're setting the `include_nightly` parameter to True here for when
         # we submit decision tasks against Try that use other
         # `target_task_method`s, like `nightly_fennec` or `mozilla_beta_tasks`,
         # which reference the `include_nightly` parameter.
         'include_nightly': True,
     },
 
+    'try-comm-central': {
+        'target_tasks_method': 'try_tasks',
+    },
+
     'ash': {
         'target_tasks_method': 'ash_tasks',
         'optimize_target_tasks': True,
         'include_nightly': False,
     },
 
     'cedar': {
         'target_tasks_method': 'cedar_tasks',
@@ -196,17 +200,17 @@ def get_decision_parameters(options):
     parameters.setdefault('release_history', dict())
     if 'nightly' in parameters.get('target_tasks_method', ''):
         parameters['release_history'] = populate_release_history('Firefox', project)
 
     # if try_task_config.json is present, load it
     task_config_file = os.path.join(os.getcwd(), 'try_task_config.json')
 
     # load try settings
-    if project == 'try':
+    if 'try' in project:
         parameters['try_mode'] = None
         if os.path.isfile(task_config_file):
             parameters['try_mode'] = 'try_task_config'
             with open(task_config_file, 'r') as fh:
                 parameters['try_task_config'] = json.load(fh)
         else:
             parameters['try_task_config'] = None