Bug 1405408 - Part 1: Use Task Cluster proxy to download non-public artifacts. r=dustin draft
authorNick Alexander <nalexander@mozilla.com>
Wed, 04 Oct 2017 13:24:41 -0700
changeset 678722 8346a0d9822834fe1ab2bb463c826cb15b69a0e9
parent 678721 420f1e062583d315faa413181b1ac17c0e55249e
child 678723 8628be21bacacbd782dffc47933d000c57dc2fb2
push id84017
push usernalexander@mozilla.com
push dateWed, 11 Oct 2017 19:53:59 +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: