aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-26 14:35:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-26 14:35:20 +0100
commit7ea2415383e7c6b9c5d5b19f8e3bf9df74233754 (patch)
treef2556a247a23ce6988d28fb57d60608114b10bd7
parentff2e532acbbb293c92c30c4b8784f8d7ff74d018 (diff)
downloadyocto-autobuilder2-7ea2415383e7c6b9c5d5b19f8e3bf9df74233754.tar.gz
yocto-autobuilder2-7ea2415383e7c6b9c5d5b19f8e3bf9df74233754.tar.bz2
yocto-autobuilder2-7ea2415383e7c6b9c5d5b19f8e3bf9df74233754.zip
wikilog: Improve whitespace formatting and add div tag
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--reporters/wikilog.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/reporters/wikilog.py b/reporters/wikilog.py
index 23f4ad5..f5434c0 100644
--- a/reporters/wikilog.py
+++ b/reporters/wikilog.py
@@ -107,7 +107,8 @@ class WikiLog(service.BuildbotService):
summaryfmt = 'Adding new BuildLog entry for build %s (%s)'
summary = summaryfmt % (buildid, chash)
summary = summary + self.idstring
- content = "* '''Build ID''' - %s" % chash
+ content = '<div id="' + str(buildid) + '"></div>\n'
+ content = content + "* '''Build ID''' - %s" % chash
content = content + self.idstring
content = content + '\n* Started at: %s\n' % starttime
content = content + '* ' + forcedby + '\n* ' + reason + '\n'
@@ -190,7 +191,7 @@ class WikiLog(service.BuildbotService):
logstring.append('[%s %s]' % (log_url, l['name']))
logs = ' '.join(logstring)
- logentry = logentry + '\n* [%s %s] %s failed: %s\n' % (url, builder, step_name, logs)
+ logentry = logentry + '\n* [%s %s] %s failed: %s' % (url, builder, step_name, logs)
blurb, entries = self.wiki.get_content(self.wiki_page)
if not blurb:
@@ -227,7 +228,7 @@ class WikiLog(service.BuildbotService):
log.err(errmsg.format(buildid, parent['url']))
return False
- new_entry = '\n' + entry.strip() + logentry
+ new_entry = '\n' + entry.strip() + logentry + '\n\n'
summary = 'Updating entry with failures in %s' % builder
summary = summary + self.idstring