bug 1238009 - in-tree tasks should link their source to the yml file they were generated from. r=dustin

This commit is contained in:
Ted Mielczarek
2016-01-08 10:34:25 -05:00
parent aa386cd4c8
commit 5525f2c432
8 changed files with 9 additions and 8 deletions

View File

@@ -376,7 +376,7 @@ class Graph(object):
graph['scopes'].add(route)
graph['metadata'] = {
'source': 'http://todo.com/what/goes/here',
'source': '{repo}file/{rev}/testing/taskcluster/mach_commands.py'.format(repo=params['head_repository'], rev=params['head_rev']),
'owner': params['owner'],
# TODO: Add full mach commands to this example?
'description': 'Task graph generated via ./mach taskcluster-graph',
@@ -389,6 +389,7 @@ class Graph(object):
interactive = cmdline_interactive or build["interactive"]
build_parameters = merge_dicts(parameters, build['additional-parameters']);
build_parameters['build_slugid'] = slugid()
build_parameters['source'] = '{repo}file/{rev}/testing/taskcluster/{file}'.format(repo=params['head_repository'], rev=params['head_rev'], file=build['task'])
build_task = templates.load(build['task'], build_parameters)
# Copy build_* attributes to expose them to post-build tasks