Bug 1207653 - Pass build_url/img_url to post-build tasks. r=garndt

This commit is contained in:
Alexandre Poirot 2015-09-29 03:02:48 -07:00
Родитель 039093bc70
Коммит bbe2020ba5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -412,12 +412,14 @@ class Graph(object):
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'])
@ -459,8 +461,6 @@ class Graph(object):
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: