bug 1456620 - stop uploading public partners to private. r=nthomas
authorAki Sasaki <asasaki@mozilla.com>
Mon, 23 Apr 2018 12:57:36 -0700
changeset 471673 59551e6e74ff5ca996f8b941c46221b2fd8c04de
parent 471672 e43c1c2ce4131918fffab239dc7b61453ce2c736
child 471674 05a13c9b1c3cda2a3b70c57c1903d36eac40851c
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnthomas
bugs1456620
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 1456620 - stop uploading public partners to private. r=nthomas MozReview-Commit-ID: 2clmiQKswnp
taskcluster/taskgraph/transforms/beetmover_repackage_partner.py
--- a/taskcluster/taskgraph/transforms/beetmover_repackage_partner.py
+++ b/taskcluster/taskgraph/transforms/beetmover_repackage_partner.py
@@ -191,25 +191,26 @@ def populate_scopes_and_worker_type(conf
 def split_public_and_private(config, jobs):
     public_bucket_scope = get_beetmover_bucket_scope(config)
     partner_config = get_partner_config_by_kind(config, config.kind)
 
     for job in jobs:
         partner_bucket_scope = add_scope_prefix(config, job['partner-bucket-scope'])
         partner, subpartner, _ = job['extra']['repack_id'].split('/')
 
-        # public
         if partner_config[partner][subpartner].get('upload_to_candidates'):
+            # public
             yield populate_scopes_and_worker_type(
                 config, job, public_bucket_scope, partner_public=True
             )
-        # private
-        yield populate_scopes_and_worker_type(
-            config, job, partner_bucket_scope, partner_public=False
-        )
+        else:
+            # private
+            yield populate_scopes_and_worker_type(
+                config, job, partner_bucket_scope, partner_public=False
+            )
 
 
 def generate_upstream_artifacts(job, build_task_ref, repackage_task_ref,
                                 repackage_signing_task_ref, platform, repack_id,
                                 partner_path):
 
     upstream_artifacts = []
     artifact_prefix = get_artifact_prefix(job)