bug 1247212: improve release automation publishing of releases - allow pushes to be scheduled instead of done directly. r=rail, a=release FENNEC_53_0b9_BUILD1 FENNEC_53_0b9_RELEASE FIREFOX_53_0b9_BUILD1 FIREFOX_53_0b9_RELEASE
authorBen Hearsum <bhearsum@mozilla.com>
Mon, 03 Apr 2017 10:26:06 -0400
changeset 558151 3a2e5c6e4ed33d9cb8b04b32f85b45a9aad4c8d8
parent 558150 39c86569861c15fa391561284f8f31a3d87cff3d
child 558152 05ed2e45839dd668c2fcb3ae81a9276cc6349272
push id52846
push usernthomas@mozilla.com
push dateFri, 07 Apr 2017 10:33:06 +0000
reviewersrail, release
bugs1247212
milestone53.0
bug 1247212: improve release automation publishing of releases - allow pushes to be scheduled instead of done directly. r=rail, a=release
testing/mozharness/scripts/release/publish_balrog.py
--- a/testing/mozharness/scripts/release/publish_balrog.py
+++ b/testing/mozharness/scripts/release/publish_balrog.py
@@ -48,17 +48,17 @@ class PublishBalrog(MercurialScript, Bui
         # taskcluster properties
         self.read_buildbot_config()
         if not self.buildbot_config:
             self.warning("Skipping buildbot properties overrides")
             return
         # TODO: version and appVersion should come from repo
         props = self.buildbot_config["properties"]
         for prop in ['product', 'version', 'build_number', 'channels',
-                     'balrog_api_root']:
+                     'balrog_api_root', 'schedule_at', 'background_rate']:
             if props.get(prop):
                 self.info("Overriding %s with %s" % (prop, props[prop]))
                 self.config[prop] = props.get(prop)
 
     def query_abs_dirs(self):
         if self.abs_dirs:
             return self.abs_dirs
         self.abs_dirs = super(PublishBalrog, self).query_abs_dirs()
@@ -102,14 +102,18 @@ class PublishBalrog(MercurialScript, Bui
             "--username", self.config["balrog_username"],
             "--version", self.config["version"],
             "--product", self.config["product"],
             "--build-number", str(self.config["build_number"]),
             "--verbose",
         ])
         for r in channel_config["publish_rules"]:
             cmd.extend(["--rules", r])
+        if self.config.get("schedule_at"):
+            cmd.extend(["--schedule-at", self.config["schedule_at"]])
+        if self.config.get("background_rate"):
+            cmd.extend(["--background-rate", str(self.config["background_rate"])])
 
         self.retry(lambda: self.run_command(cmd, halt_on_failure=True))
 
 # __main__ {{{1
 if __name__ == '__main__':
     PublishBalrog().run_and_exit()