Bug 1502531: [mozharness] Upload mozharness builds logs; r=Callek

Differential Revision: https://phabricator.services.mozilla.com/D9965

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Prince 2018-10-29 16:13:11 +00:00
Родитель 42ed3a7d97
Коммит f08d1efdeb
2 изменённых файлов: 11 добавлений и 2 удалений

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

@ -147,8 +147,12 @@ def mozharness_on_docker_worker_setup(config, job, taskdesc):
# android-build).
taskdesc['worker'].setdefault('docker-image', {'in-tree': 'debian7-amd64-build'})
taskdesc['worker'].setdefault('artifacts', []).append({
'name': 'public/logs',
'path': '{workdir}/logs/'.format(**run),
'type': 'directory'
})
worker['taskcluster-proxy'] = run.get('taskcluster-proxy')
docker_worker_add_artifacts(config, job, taskdesc)
docker_worker_add_workspace_cache(config, job, taskdesc,
extra=run.get('extra-workspace-cache-key'))
@ -253,6 +257,11 @@ def mozharness_on_generic_worker(config, job, taskdesc):
worker = taskdesc['worker']
taskdesc['worker'].setdefault('artifacts', []).append({
'name': 'public/logs',
'path': 'logs',
'type': 'directory'
})
if not worker.get('skip-artifacts', False):
generic_worker_add_artifacts(config, job, taskdesc)
support_vcs_checkout(config, job, taskdesc)

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

@ -74,7 +74,7 @@ def mozharness_test_on_docker(config, job, taskdesc):
artifacts = [
# (artifact name prefix, in-image path)
("public/logs/", "{workdir}/workspace/build/upload/logs/".format(**run)),
("public/logs/", "{workdir}/workspace/build/logs/".format(**run)),
("public/test", "{workdir}/artifacts/".format(**run)),
("public/test_info/", "{workdir}/workspace/build/blobber_upload_dir/".format(**run)),
]