buildmaster: search for a taskname only on first line

This commit is contained in:
Martin Krizek 2014-08-22 07:37:41 +00:00
parent 40b1d0a809
commit dce2f3f240

View file

@ -280,7 +280,7 @@ def html_message_formatter(mode, name, build, results, master_status):
content = log.getText().splitlines() # Note: can be VERY LARGE
if step.getName() == 'runtask':
taskname = re.search("task=\['(.*)\.yml'\]", content).group(1)
taskname = re.search("task=\['(.*)\.yml'\]", content[0]).group(1)
text.insert(0, '<h4>Task name: %s</h4>' % taskname)
url = u'%s/steps/%s/logs/%s' % (master_status.getURLForThing(build),