зеркало из https://github.com/mozilla/treeherder.git
Bug 1158572 - Add a job name to non-buildbot classification bug comments
This commit is contained in:
Родитель
5b74ef9022
Коммит
35101264bc
|
@ -85,6 +85,7 @@ def test_bugzilla_comment_request_body(test_project, eleven_jobs_processed):
|
|||
u'start_time: 2013-11-13T06:39:13\n'
|
||||
u'who: user[at]mozilla[dot]com\n'
|
||||
u'machine: bld-linux64-ec2-132\n'
|
||||
u'buildname: non-buildbot b2g-emu-jb test B2G Emulator Image Build\n'
|
||||
u'revision: cdfe03e77e66\n\n'
|
||||
u'First error line\n'
|
||||
u'Second error line')
|
||||
|
|
|
@ -137,6 +137,9 @@ class BugzillaCommentRequest(object):
|
|||
|
||||
if buildapi_info:
|
||||
job_description['buildname'] = buildapi_info[0]["blob"]["buildername"]
|
||||
else:
|
||||
# make up a buildername for taskcluster jobs
|
||||
job_description['buildname'] = 'non-buildbot %s test %s' % (job["platform"], job["job_type_name"])
|
||||
|
||||
body_comment = '\n'.join(
|
||||
["{0}: {1}".format(k, v) for k, v in job_description.items()])
|
||||
|
|
Загрузка…
Ссылка в новой задаче