Bug 1277595 - Use mozilla-central config-file on try, r=jlund draft
authoramiyaguchi@mozilla.com
Thu, 01 Sep 2016 09:22:10 -0700
changeset 408919 371b54cb30cb043dffaf47f8167e78c00c2633b7
parent 408918 db799bc469c78ab95c6d06dc019050b91d67f81e
child 408920 b444e1f9443dbaa5bb160163a3ce8c59ef71b723
push id28326
push userjlund@mozilla.com
push dateThu, 01 Sep 2016 21:00:13 +0000
reviewersjlund
bugs1277595
milestone51.0a1
Bug 1277595 - Use mozilla-central config-file on try, r=jlund MozReview-Commit-ID: J9GQWV4krX
testing/mozharness/mozharness/mozilla/building/buildbase.py
--- a/testing/mozharness/mozharness/mozilla/building/buildbase.py
+++ b/testing/mozharness/mozharness/mozilla/building/buildbase.py
@@ -1640,16 +1640,22 @@ or run without that action (ie: --no-{ac
             return
         self._initialize_taskcluster()
 
         dirs = self.query_abs_dirs()
         base_work_dir = dirs['base_work_dir']
         objdir = dirs['abs_obj_dir']
         branch = self.branch
 
+        # Building a nightly with the try repository fails because a
+        # config-file does not exist for try. Default to mozilla-central
+        # settings (arbitrarily).
+        if branch == 'try':
+            branch = 'mozilla-central'
+
         # Some android versions share the same .json config - if
         # multi_locale_config_platform is set, use that the .json name;
         # otherwise, use the buildbot platform.
         default_platform = self.buildbot_config['properties'].get('platform',
                                                                   'android')
 
         multi_config_pf = self.config.get('multi_locale_config_platform',
                                           default_platform)