[users at bb.net] Help with new buildstep.
tardyp at gmail.com
Mon Feb 19 10:26:49 UTC 2018
What you need is a logobserver.
There is a LineConsumerLogObserver which can be used to read the logs one
line by one line.
This component is optimised to manage the data on the flow, and avoid
consuming lots of memory by loading the log in memory.
On Mon, Feb 19, 2018 at 3:54 AM Hugh Sorby <h.sorby at auckland.ac.nz> wrote:
> Hi All,
> I'm trying to update an old buildstep to the 'new-style'. What I used to
> do was pass the stdio log line by line looking for a matching string. Now
> using the 'run' method I have
> def run(self):
> command = self.command
> cmd = yield self.makeRemoteShellCommand(command=command,
> collectStdout=True, stdioLogName="stdoutLog")
> yield self.runCommand(cmd)
> but I'm unsure of how or when I should parse the log and set the result.
> I don't actually think I need to collect stdout but I have left it in here
> as I was testing out some ideas.
> Many thanks for any help or pointers,
> users mailing list
> users at buildbot.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users