Bug 1410513: Use try_tasks as target method on try-comm-central; r=dustin
authorTom Prince <mozilla@hocat.ca>
Thu, 02 Nov 2017 15:02:49 -0600
changeset 693805 713b8f8146a2f3f99cd2402c1f70df83c43f6c03
parent 693804 482202ada27cafcef70f73f31bbe47c9f45e7db9
child 693806 69c60c8fc528d8d038e22a2ae62f5ff7b1131231
push id87924
push userbmo:mozilla@hocat.ca
push dateMon, 06 Nov 2017 22:10:10 +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