[Buildbot-devel] html logfiles in step

Greg MacDonald gmacdonald at trionworlds.com
Fri Jul 10 20:12:37 UTC 2015


Hi David,

Have a look here:

You'll have to hack the web page as discussed here:

http://trac.buildbot.net/ticket/371

I ended up just keying off the file extension instead of using getText(), which doesn't work with new style steps.

if original.name.endswith('.html'):

instead of

if original.getText().startswith('<html'):

-Greg

-----Original Message-----
From: David Froger [mailto:david.froger.ml at mailoo.org] 
Sent: Friday, July 03, 2015 8:00 AM
To: buildbot-devel at lists.sourceforge.net
Subject: [Buildbot-devel] html logfiles in step

Hello,

I have a Test build step (from buildbot.steps.shell, buildbot 0.8.10), which as an HTML file passed in the `logfiles` argument.

I would like the HTML file to be renderer as HTML, not "raw text", is it possible?

The HTML file embeds png images (<img src="data:image/png;base64,...">).

It also contain <html>, <head>, <body>, <h1> etc, but I can adpat it.

Or do I have a write a new BuildStep and use addHTMLLog (http://docs.buildbot.net/0.8.12/manual/customization.html#writing-log-files)?

By the way, the RunCleanup example
(http://docs.buildbot.net/0.8.12/manual/customization.html#running-commands) is not clear for me. There is a run method of the RunCleanup class, then a run function. Is it a typo?

Thanks,
David

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel




More information about the devel mailing list