[Buildbot-devel] adding an html logfile

Derek derek.m.graham+ml at gmail.com
Fri Aug 27 09:48:44 UTC 2010


I have the same problem: I want to add an html file at the end of the step and
have tried:

   1. The method from the previous post, but end up with a redundant log file.
There doesn't seem to be a method to delete a log file to get round this.
   2. Passing in a new arg to my subclass of ShellCommand, but get errors about
unknown attributes.*
   3. .addHTMLLog() straight on the step, but I get errors too because I think
it's too early

* The code looked like:
class LintStep2(shell.ShellCommand):
   def __init__(self, resultsFile, **kwargs):
      shell.ShellCommand.__init__(self, **kwargs)
      self.addFactoryArguments(resultsFile = resultsFile)   

   def createSummary(self, log):
      with open(self.remote_kwargs["workdir"] + "/" + self.resultsFile) as f:
         self.addHTMLLog("results.html", f.read())


Any help much appreciated!



More information about the devel mailing list