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 322745 c59c022943f6a7e79f6002e11fc9f56cb836f5dd
parent 322744 941a62368cb7664124838d8797bc34138819db9c
child 322746 52cfda4c6bae5c28ab09709655435da6ecda9e2a
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)
reviewerstesting, rail
bugs1160385
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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):