buildmaster: search for a taskname only on first line
This commit is contained in:
parent
40b1d0a809
commit
dce2f3f240
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue