From dce2f3f240caa830ad0cce7b24d3af19a83c980f Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Fri, 22 Aug 2014 07:37:41 +0000 Subject: [PATCH] buildmaster: search for a taskname only on first line --- .../buildmaster-configure/templates/taskotron.master.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 b/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 index 71ef9efb6f..e8d0d66105 100644 --- a/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 +++ b/roles/taskotron/buildmaster-configure/templates/taskotron.master.cfg.j2 @@ -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, '

Task name: %s

' % taskname) url = u'%s/steps/%s/logs/%s' % (master_status.getURLForThing(build),