[Buildbot-devel] adding build steps on the fly

Neil Hemingway neil.hemingway at googlemail.com
Thu Jul 31 19:02:23 UTC 2008


Sorry, I don't use it myself (but hope to soon).

>From looking at the code something like the following should work:

The SetProperty buildstep should help for the buildstep that determines
whether subsequent steps should execute (I've assumed your extract_fn
returns True/False)

Derive subsequent buildsteps from LoggingBuildStep and override runCommand
as

class MyBuildStep(buildbot.process.buildstep.BuildStep):
    def runCommand(self, c):
        if self.getProperty['run_following_steps']:
            LoggingBuildStep.runCommand(c)

we ought to have some kind of condition built into buildsteps, but I don't
think there is at the moment.

Hope that helps, let me know how it goes.

Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20080731/00237d7c/attachment.html>


More information about the devel mailing list