bug 1442793 - release_generate_checksums_beetmover artifact_prefix r=bhearsum
authorAki Sasaki <asasaki@mozilla.com>
Wed, 21 Mar 2018 11:14:59 -0700
changeset 467494 b0d243813a067a3206a21a4e2c59d2d5cf554c6a
parent 467493 b1ce919d3f3484579f22b168297be0d7692a1078
child 467495 d1c361a5ddc715b52adb3e1d8ad338ecdc59055d
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhearsum
bugs1442793
milestone61.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 1442793 - release_generate_checksums_beetmover artifact_prefix r=bhearsum MozReview-Commit-ID: Fv1nkOEH6V5
taskcluster/taskgraph/transforms/release_generate_checksums_beetmover.py
--- a/taskcluster/taskgraph/transforms/release_generate_checksums_beetmover.py
+++ b/taskcluster/taskgraph/transforms/release_generate_checksums_beetmover.py
@@ -7,16 +7,17 @@ Transform the `release-generate-checksum
 from __future__ import absolute_import, print_function, unicode_literals
 
 from taskgraph.transforms.base import TransformSequence
 from taskgraph.util.attributes import copy_attributes_from_dependent_job
 from taskgraph.util.schema import validate_schema, Schema, resolve_keyed_by, optionally_keyed_by
 from taskgraph.util.scriptworker import (get_beetmover_bucket_scope,
                                          get_beetmover_action_scope,
                                          get_phase)
+from taskgraph.util.taskcluster import get_artifact_prefix
 from taskgraph.transforms.beetmover import craft_release_properties
 from taskgraph.transforms.task import task_description_schema
 from voluptuous import Required, Optional
 
 transforms = TransformSequence()
 
 CHECKSUMS_BUILD_ARTIFACTS = [
     "SHA256SUMMARY",
@@ -118,21 +119,21 @@ def make_task_description(config, jobs):
             'run-on-projects': dep_job.attributes.get('run_on_projects'),
             'treeherder': treeherder,
             'shipping-phase': phase,
         }
 
         yield task
 
 
-def generate_upstream_artifacts(signing_task_ref, build_task_ref):
+def generate_upstream_artifacts(job, signing_task_ref, build_task_ref):
     build_mapping = CHECKSUMS_BUILD_ARTIFACTS
     signing_mapping = CHECKSUMS_SIGNING_ARTIFACTS
 
-    artifact_prefix = 'public/build'
+    artifact_prefix = get_artifact_prefix(job)
 
     upstream_artifacts = [{
         "taskId": {"task-reference": build_task_ref},
         "taskType": "build",
         "paths": ["{}/{}".format(artifact_prefix, p)
                   for p in build_mapping],
         "locale": "en-US",
         }, {
@@ -164,15 +165,15 @@ def make_task_worker(config, jobs):
 
         signing_task_ref = "<{}>".format(str(signing_task))
         build_task_ref = "<{}>".format(str(build_task))
 
         worker = {
             'implementation': 'beetmover',
             'release-properties': craft_release_properties(config, job),
             'upstream-artifacts': generate_upstream_artifacts(
-                signing_task_ref, build_task_ref
+                job, signing_task_ref, build_task_ref
             )
         }
 
         job["worker"] = worker
 
         yield job