[Buildbot-devel] adding an html logfile

Derek Graham (ML) derek.m.graham+ml at gmail.com
Wed Sep 1 09:39:32 UTC 2010


FileUpload is another step though -- I determine from the HTML file if the
ShellCommand was a success, so transferring the file doesn't make sense.

This leads me back to passing the HTML file as a logfile so I can grep it to
determine the return value of evaluateCommand. When the user clicks on the
link on the waterfall display, I want the HTML file to render as such, not
text. So I can call addHTMLLog with the text of the logfile, but this gives
me two links: one to the text of the HTML and one that renders the HTML. I
don't need the former, so how do I delete it (or this link) in my own
BuildStep?

Thanks again,

d

On 1 September 2010 00:18, Dustin J. Mitchell <dustin at zmanda.com> wrote:

> On Tue, Aug 31, 2010 at 11:48 AM, Derek Graham (ML)
> <derek.m.graham+ml at gmail.com <derek.m.graham%2Bml at gmail.com>> wrote:
> > Sorry I though you meant to override the function. Ok, I've done that
> > (called addHTMLLog from evaluateCommand) and passed in a option to my
> > subclass to specify the file name, however, how do I get the full path of
> > the buildslave from inside my subclass (I want to open the HTML file in
> > evaluateCommand)? workdir is the relative path and if I pass in the
> absolute
> > directory as an argument then it fails saying that the file doesn't exist
> (I
> > checked that it does as I copied the file path from the error text to the
> > console -- maybe it evaluates this on the buildmaster machine?).
>
> Right - the step class runs on the buildmaster.  You'll need to set
> things up so that the slave transfers the file to the master - most
> likely as a logfile, but you could also use the transfer steps.
>
> Dustin
>
> --
> Open Source Storage Engineer
> http://www.zmanda.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100901/c78dd884/attachment.html>


More information about the devel mailing list