Bug 1260415 - Use revision as tag r=coop a=release DONTBUILD
authorRail Aliiev <rail@mozilla.com>
Fri, 15 Apr 2016 23:14:48 -0400
changeset 323977 3e665a8f5cc0b2a4ae356b4fcf981d41d7ae4be8
parent 323976 72bdf0a085a53a9ff83511bee4dcc353731866a7
child 323978 1a229bf7891d7b453eb6e5269c11ace513e400a4
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscoop, release
bugs1260415
milestone47.0a2
Bug 1260415 - Use revision as tag r=coop a=release DONTBUILD MozReview-Commit-ID: 3cZe5ieNndK
testing/mozharness/scripts/desktop_partner_repacks.py
--- a/testing/mozharness/scripts/desktop_partner_repacks.py
+++ b/testing/mozharness/scripts/desktop_partner_repacks.py
@@ -104,17 +104,17 @@ class DesktopPartnerRepacks(ReleaseMixin
             self.fatal("repack_manifests_url not supplied.")
 
     def _pre_config_lock(self, rw_config):
         self.read_buildbot_config()
         if not self.buildbot_config:
             self.warning("Skipping buildbot properties overrides")
         else:
             props = self.buildbot_config["properties"]
-            for prop in ['version', 'build_number']:
+            for prop in ['version', 'build_number', 'revision']:
                 if props.get(prop):
                     self.info("Overriding %s with %s" % (prop, props[prop]))
                     self.config[prop] = props.get(prop)
 
         if self.config.get('require_buildprops', False) is True:
             if not self.buildbot_config:
                 self.fatal("Unable to load properties from file: %s" % self.config.get('buildbot_json_path'))
             buildbot_props = self.buildbot_config.get('properties', {})
@@ -187,16 +187,18 @@ class DesktopPartnerRepacks(ReleaseMixin
         if self.config.get('partner'):
             repack_cmd.extend(["--partner", self.config['partner']])
         if self.config.get('s3cfg'):
             repack_cmd.extend(["--s3cfg", self.config['s3cfg']])
         if self.config.get('hgroot'):
             repack_cmd.extend(["--hgroot", self.config['hgroot']])
         if self.config.get('hgrepo'):
             repack_cmd.extend(["--repo", self.config['hgrepo']])
+        if self.config.get('revision'):
+            repack_cmd.extend(["--tag", self.config["revision"]])
 
         return self.run_command(repack_cmd,
                                 cwd=self.query_abs_dirs()['abs_scripts_dir'])
 
 # main {{{
 if __name__ == '__main__':
     partner_repacks = DesktopPartnerRepacks()
     partner_repacks.run_and_exit()