mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1630710: Add link to specfic as specific task in treeherder; r=Callek
Since treeherder added support for linking to a specific task, lets make use of it in taskgraph. Differential Revision: https://phabricator.services.mozilla.com/D76049
This commit is contained in:
parent
002d9a1c56
commit
9d6432258c
@ -1849,10 +1849,15 @@ def build_task(config, tasks):
|
||||
|
||||
if task_th:
|
||||
# link back to treeherder in description
|
||||
th_push_link = 'https://treeherder.mozilla.org/#/jobs?repo={}&revision={}'.format(
|
||||
config.params['project'], branch_rev)
|
||||
task_def['metadata']['description'] += ' ([Treeherder push]({}))'.format(
|
||||
th_push_link)
|
||||
th_job_link = (
|
||||
'https://treeherder.mozilla.org/#/jobs?repo={}&revision={}&selectedTaskRun=<self>'
|
||||
).format(config.params['project'], branch_rev)
|
||||
task_def['metadata']['description'] = {
|
||||
'task-reference': '{description} ([Treeherder job]({th_job_link}))'.format(
|
||||
description=task_def['metadata']['description'],
|
||||
th_job_link=th_job_link
|
||||
)
|
||||
}
|
||||
|
||||
# add the payload and adjust anything else as required (e.g., scopes)
|
||||
payload_builders[task['worker']['implementation']].builder(config, task, task_def)
|
||||
|
Loading…
Reference in New Issue
Block a user