Bug 1249676 - Beetmove source tarball/bundle r=rail DONTBUILD
authorKim Moir <kmoir@mozilla.com>
Thu, 25 Feb 2016 20:08:01 -0500
changeset 308634 0fc0ab4127e6b4cb2073b04302cb6406e23299f3
parent 308633 97636b12d45871d5783afe69c5be4e394d9f3e3a
child 308635 946fe891d91e1e5a2578bbce2513d496339dacfb
push id9214
push userraliiev@mozilla.com
push dateMon, 07 Mar 2016 14:25:21 +0000
treeherdermozilla-aurora@8849dd1a4a79 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrail
bugs1249676
milestone47.0a1
Bug 1249676 - Beetmove source tarball/bundle r=rail DONTBUILD
testing/mozharness/configs/beetmover/source.yml.tmpl
testing/mozharness/configs/beetmover/source_checksums.yml.tmpl
testing/mozharness/scripts/release/beet_mover.py
new file mode 100644
--- /dev/null
+++ b/testing/mozharness/configs/beetmover/source.yml.tmpl
@@ -0,0 +1,14 @@
+---
+metadata:
+    name: "Beet Mover Manifest"
+    description: "Maps artifact locations to s3 key names for source bundles"
+    owner: "release@mozilla.com"
+
+mapping:
+  all:
+    source_bundle:
+      artifact: {{ artifact_base_url }}/firefox-{{ app_version }}.bundle
+      s3_key: {{ s3_prefix }}/{{ version }}-candidates/{{ build_num }}/source/firefox-{{ version }}.bundle
+    source_tar:
+      artifact: {{ artifact_base_url }}/firefox-{{ app_version }}.source.tar.xz
+      s3_key: {{ s3_prefix }}/{{ version }}-candidates/{{ build_num }}/source/firefox-{{ version }}.source.tar.xz
new file mode 100644
--- /dev/null
+++ b/testing/mozharness/configs/beetmover/source_checksums.yml.tmpl
@@ -0,0 +1,14 @@
+---
+metadata:
+    name: "Beet Mover Manifest"
+    description: "Maps artifact locations to s3 key names for source bundle checksums"
+    owner: "release@mozilla.com"
+
+mapping:
+  all:
+    source_checksum:
+      artifact: {{ artifact_base_url }}/firefox-{{ app_version }}.source.checksums
+      s3_key: {{ s3_prefix }}/{{ version }}-candidates/{{ build_num }}/source/firefox-{{ version }}.source.checksums
+    source_checksum_asc:
+      artifact: {{ artifact_base_url }}/firefox-{{ app_version }}.source.checksums.asc
+      s3_key: {{ s3_prefix }}/{{ version }}-candidates/{{ build_num }}/source/firefox-{{ version }}.source.checksums.asc
--- a/testing/mozharness/scripts/release/beet_mover.py
+++ b/testing/mozharness/scripts/release/beet_mover.py
@@ -188,17 +188,17 @@ class BeetMover(BaseScript, VirtualenvMi
         jinja2 = self.virtualenv_imports['jinja2']
         yaml = self.virtualenv_imports['yaml']
 
         jinja_env = jinja2.Environment(loader=jinja2.FileSystemLoader(template_dir),
                                        undefined=jinja2.StrictUndefined)
         template = jinja_env.get_template(template_file)
         template_vars = {
             "platform": self.config['platform'],
-            "locales": self.config['locales'],
+            "locales": self.config.get('locales'),
             "version": self.config['version'],
             "app_version": self.config.get('app_version', ''),
             "partial_version": self.config.get('partial_version', ''),
             "build_num": self.config['build_num'],
             # mirror current release folder structure
             "s3_prefix": 'pub/{}/candidates'.format(self.config['product']),
             "artifact_base_url": self.config['artifact_base_url'].format(
                     taskid=self.config['taskid'], subdir=self.config['artifact_subdir']