Bug 1405408 - Part 1: Use Task Cluster proxy to download non-public artifacts. r=dustin
authorNick Alexander <nalexander@mozilla.com>
Wed, 04 Oct 2017 13:24:41 -0700
changeset 679132 74e5d77b144db73cdeac30bfa2a323d0510817c1
parent 679131 347192dde0ed068e46593b68d465c6d1e4cd8db7
child 679133 20cae3b446bf279f79ef011a9b742d248e1a2897
push id84141
push userbmo:schien@mozilla.com
push dateThu, 12 Oct 2017 11:13:04 +0000
reviewersdustin
bugs1405408
milestone58.0a1
Bug 1405408 - Part 1: Use Task Cluster proxy to download non-public artifacts. r=dustin MozReview-Commit-ID: L6VfQuAmHLC
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1858,18 +1858,20 @@ class PackageFrontend(MachCommandBase):
                                 break
                             except Exception:
                                 pass
                 for algorithm, digest in (data.get('artifacts', {})
                                               .get(artifact_name, {}).items()):
                     pass
 
                 name = os.path.basename(artifact_name)
+                artifact_url = get_artifact_url(task_id, artifact_name,
+                    use_proxy=not artifact_name.startswith('public/'))
                 super(ArtifactRecord, self).__init__(
-                    get_artifact_url(task_id, artifact_name), name,
+                    artifact_url, name,
                     None, digest, algorithm, unpack=True)
 
         records = OrderedDict()
         downloaded = []
 
         if tooltool_manifest:
             manifest = open_manifest(tooltool_manifest)
             for record in manifest.file_records: