Bug 1160385 - Generate checksums rel promotion, full bucket, DONTBUILD NPOTB a=testing r=rail
authorJordan Lund <jlund@mozilla.com>
Tue, 01 Mar 2016 09:32:37 -0800
changeset 304354 2caad913ec805e729ce802279d46ab087e82a565
parent 304353 664c129f524fa3e94029e84432c494394b3d1e9c
child 304355 c160afabf0e7486f41f9f0c0c1b11d9d510f7a9e
push id9175
push userraliiev@mozilla.com
push dateThu, 03 Mar 2016 03:39:52 +0000
treeherdermozilla-aurora@0bee186afe5a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstesting, rail
bugs1160385
milestone46.0a2
Bug 1160385 - Generate checksums rel promotion, full bucket, DONTBUILD NPOTB a=testing r=rail MozReview-Commit-ID: G3OZPmFyXDx
testing/mozharness/scripts/release/generate-checksums.py
--- a/testing/mozharness/scripts/release/generate-checksums.py
+++ b/testing/mozharness/scripts/release/generate-checksums.py
@@ -27,16 +27,20 @@ class ChecksumsGenerator(BaseScript, Vir
         [["--build-number"], {
             "dest": "build_number",
             "help": "Build number of release, eg: 2",
         }],
         [["--bucket-name-prefix"], {
             "dest": "bucket_name_prefix",
             "help": "Prefix of bucket name, eg: net-mozaws-prod-delivery. This will be used to generate a full bucket name (such as net-mozaws-prod-delivery-{firefox,archive}.",
         }],
+        [["--bucket-name-full"], {
+            "dest": "bucket_name_full",
+            "help": "Full bucket name, eg: net-mozaws-prod-delivery-firefox",
+        }],
         [["-j", "--parallelization"], {
             "dest": "parallelization",
             "default": 20,
             "type": int,
             "help": "Number of checksums file to download concurrently",
         }],
         [["-f", "--format"], {
             "dest": "formats",
@@ -124,16 +128,19 @@ class ChecksumsGenerator(BaseScript, Vir
                 "^.*\.dmg$",
                 "^.*\.bundle$",
                 "^.*\.mar$",
                 "^.*Setup.*\.exe$",
                 "^.*\.xpi$",
             ]
 
     def _get_bucket_name(self):
+        if self.config.get('bucket_name_full'):
+            return self.config['bucket_name_full']
+
         suffix = "archive"
         # Firefox has a special bucket, per https://github.com/mozilla-services/product-delivery-tools/blob/master/bucketmap.go
         if self.config["stage_product"] == "firefox":
             suffix = "firefox"
 
         return "{}-{}".format(self.config["bucket_name_prefix"], suffix)
 
     def _get_file_prefix(self):