bug 1442793 - diffoscope artifact_prefix. r?bhearsum draft
authorAki Sasaki <asasaki@mozilla.com>
Wed, 07 Mar 2018 13:58:02 -0800
changeset 782023 dd326fd78fed15a44863dd3483dd7600bfab1102
parent 782022 0a8a69115ec02a8a62f29bf191044a27b71e3192
child 782024 010b14e8b044e4e91f90f5815264435a4d3a723e
push id106465
push userasasaki@mozilla.com
push dateSat, 14 Apr 2018 00:42:17 +0000
reviewersbhearsum
bugs1442793
milestone61.0a1
bug 1442793 - diffoscope artifact_prefix. r?bhearsum MozReview-Commit-ID: 5ohAgqhqj5V
taskcluster/taskgraph/transforms/diffoscope.py
--- a/taskcluster/taskgraph/transforms/diffoscope.py
+++ b/taskcluster/taskgraph/transforms/diffoscope.py
@@ -8,17 +8,17 @@ defined in kind.yml
 
 from __future__ import absolute_import, print_function, unicode_literals
 
 from taskgraph.transforms.base import TransformSequence
 from taskgraph.util.schema import (
     Schema,
     validate_schema,
 )
-from taskgraph.util.taskcluster import get_artifact_url
+from taskgraph.util.taskcluster import get_artifact_path, get_artifact_url
 from voluptuous import (
     Any,
     Optional,
     Required,
 )
 
 transforms = TransformSequence()
 
@@ -102,17 +102,17 @@ def fill_template(config, tasks):
             elif 'win' in os_hint:
                 artifact = 'target.zip'
             else:
                 raise Exception(
                     'Cannot figure out the OS for {!r}'.format(value))
             if previous_artifact is not None and previous_artifact != artifact:
                 raise Exception(
                     'Cannot compare builds from different OSes')
-            url = get_artifact_url(task_id, 'public/build/{}'.format(artifact))
+            url = get_artifact_url(task_id, get_artifact_path(task, artifact))
             urls[k] = {'task-reference': url}
             previous_artifact = artifact
 
         taskdesc = {
             'label': 'diff-' + name,
             'description': name,
             'treeherder': {
                 'symbol': task['symbol'],