Bug 1204490 - Add link to treeherder to taskcluster task descriptions r?dustin
MozReview-Commit-ID: BDDPf0nZRRg
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -636,16 +636,23 @@ def build_task(config, tasks):
config.params['head_repository'],
config.params['head_rev'],
config.path),
},
'extra': extra,
'tags': {'createdForUser': config.params['owner']},
}
+ if task_th:
+ # link back to treeherder in description
+ th_push_link = 'https://treeherder.mozilla.org/#/jobs?repo={}&revision={}'.format(
+ config.params['project'], config.params['head_rev'])
+ task_def['metadata']['description'] += ' ([Treeherder push]({}))'.format(
+ th_push_link)
+
# add the payload and adjust anything else as required (e.g., scopes)
payload_builders[task['worker']['implementation']](config, task, task_def)
attributes = task.get('attributes', {})
attributes['run_on_projects'] = task.get('run-on-projects', ['all'])
yield {
'label': task['label'],