mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
buildmaster: search for a taskname only on first line
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user