Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bug 1455407: [releaserunner3] Pass the trust domain when finding the …
Browse files Browse the repository at this point in the history
…decision task in trigger-action. r=mtabara

Differential Revision: https://phabricator.services.mozilla.com/D1603
  • Loading branch information
tomprince committed Jun 11, 2018
1 parent 021082e commit b3f5563
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion buildfarm/release/trigger_action.py
Expand Up @@ -32,6 +32,13 @@
]


def get_trust_domain(releases_config, product):
for entry in releases_config:
if entry['product'] == product:
return entry['trust_domain']
raise RuntimeError("Unknown product %s", product)


def get_task(task_id):
queue = taskcluster.Queue()
return queue.task(task_id)
Expand Down Expand Up @@ -117,7 +124,12 @@ def main():
revision = parameters["head_rev"]

if not decision_task_id:
decision_task_id = find_decision_task_id(project, revision)
product = args.action_flavor.split('_')[1]
trust_domain = get_trust_domain(release_runner_config['releases'], product)
decision_task_id = find_decision_task_id(
trust_domain=trust_domain,
project=project, revision=revision,
)

previous_graph_ids = []
if args.previous_graph_ids:
Expand Down

0 comments on commit b3f5563

Please sign in to comment.