Bug 1256063 - Add update bouncer aliases builder. r=rail draft
authorMihai Tabara <mtabara@mozilla.com>
Sun, 27 Mar 2016 02:26:56 +0100
changeset 4499 8d03946cfc4e30871659752f06cc4c309fa06acd
parent 4498 9108732fd0e7302a2518f3ced0c5accc7fe0c881
push id3623
push userbmo:mtabara@mozilla.com
push dateSun, 27 Mar 2016 01:28:26 +0000
reviewersrail
bugs1256063
Bug 1256063 - Add update bouncer aliases builder. r=rail MozReview-Commit-ID: IOhXjYhVJwd
process/release.py
--- a/process/release.py
+++ b/process/release.py
@@ -1925,16 +1925,47 @@ def generateReleasePromotionBuilders(bra
         "properties": {
             "branch": branch_name,
             "platform": None,
             "product": product,
         }
     }
     builders.append(version_bump_builder)
 
+    # bouncer aliases
+    bouncer_aliases_mh_cfg = {
+        "script_name": "scripts/release/postrelease_bouncer_aliases.py",
+        "extra_args": [
+             "-c",  branch_config['postrelease_bouncer_aliases_config'][product],
+        ]
+    }
+    # TODO: should we use release-{branch}-{product}_postrelease to keep naming
+    # convention with buildbot?
+    bouncer_aliases_buildername = "release-{branch}-{product}_bouncer_aliases".format(
+        branch=branch_name, product=product)
+    # Explicitly define pf using the slave platform (linux64 in this case)
+    bouncer_aliases_submitter_factory = makeMHFactory(
+        config=branch_config, pf=branch_config["platforms"]['linux64'],
+        mh_cfg=bouncer_aliases_mh_cfg, use_credentials_file=True)
+
+    bouncer_aliases_builder = {
+        "name": bouncer_aliases_buildername,
+        "slavenames": branch_config["platforms"]["linux64"]["slaves"],
+        "builddir": bouncer_aliases_buildername,
+        "slavebuilddir": normalizeName(bouncer_aliases_buildername),
+        "factory": bouncer_aliases_submitter_factory,
+        "category": category_name,
+        "properties": {
+            "branch": branch_name,
+            "platform": None,
+            "product": product,
+        }
+    }
+    builders.append(bouncer_aliases_builder)
+
     # checksums
     checksums_buildername = "release-{branch}-{product}_chcksms".format(
         branch=branch_name, product=product)
     extra_extra_args = []
     if product == 'fennec':
         extra_extra_args = ['--add-action=copy-info-files']
     checksums_mh_cfg = {
         'script_name': 'scripts/release/generate-checksums.py',