Bug 1207653 - Pass build_url/img_url to post-build tasks. r=garndt
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 29 Sep 2015 03:02:48 -0700
changeset 265031 61d50f75646b78429f7720d8c45e62ebbc9d3308
parent 265030 964b4851ef52836d62ac3479e4bc77e99ee2ce99
child 265032 e9644106d5407d2194e140ef076efedbc7773fc6
push id65832
push userkwierso@gmail.com
push dateTue, 29 Sep 2015 23:14:05 +0000
treeherdermozilla-inbound@00ac696cdc86 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgarndt
bugs1207653
milestone44.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 1207653 - Pass build_url/img_url to post-build tasks. r=garndt
testing/taskcluster/mach_commands.py
--- a/testing/taskcluster/mach_commands.py
+++ b/testing/taskcluster/mach_commands.py
@@ -407,22 +407,24 @@ class Graph(object):
                     build_parameters['build_slugid'],
                     build_task['task']['extra']['locations']['mozharness']
                 )
 
             build_url = ARTIFACT_URL.format(
                 build_parameters['build_slugid'],
                 build_task['task']['extra']['locations']['build']
             )
+            build_parameters['build_url'] = build_url
 
             # img_url is only necessary for device builds
             img_url = ARTIFACT_URL.format(
                 build_parameters['build_slugid'],
                 build_task['task']['extra']['locations'].get('img', '')
             )
+            build_parameters['img_url'] = img_url
 
             define_task = DEFINE_TASK.format(build_task['task']['workerType'])
 
             graph['scopes'].append(define_task)
             graph['scopes'].extend(build_task['task'].get('scopes', []))
             route_scopes = map(lambda route: 'queue:route:' + route, build_task['task'].get('routes', []))
             graph['scopes'].extend(route_scopes)
 
@@ -454,18 +456,16 @@ class Graph(object):
                                                      templates,
                                                      build_treeherder_config)
                 set_interactive_task(post_task, interactive)
                 graph['tasks'].append(post_task)
 
             for test in build['dependents']:
                 test = test['allowed_build_tasks'][build['task']]
                 test_parameters = copy.copy(build_parameters)
-                test_parameters['build_url'] = build_url
-                test_parameters['img_url'] = img_url
                 if tests_url:
                     test_parameters['tests_url'] = tests_url
                 if test_packages_url:
                     test_parameters['test_packages_url'] = test_packages_url
                 if mozharness_url:
                     test_parameters['mozharness_url'] = mozharness_url
                 test_definition = templates.load(test['task'], {})['task']
                 chunk_config = test_definition['extra']['chunks']