[Buildbot-devel] doStepIf function

robert dugal rmdugal at hotmail.com
Mon May 10 12:33:46 UTC 2010


I cannot figure out the syntax for how to use doStepIf with a function so that the step is only executed if certain conditions are true. The condition needs to have some complex testing of builder properties so I want to write this as a function.
How do I convert something like this below into using a function?

           self.addStep(ShellCommand(
                doStepIf=( 
                (lambda(step): step.build.getProperties().has_key("FOO"))
                and

                (lambda(step): step.getProperty("FOO") in fooList)
                ), command='some command'))
 

Rob

 		 	   		  
_________________________________________________________________
30 days of prizes to be won with Hotmail.  Enter Here.
http://go.microsoft.com/?linkid=9729709
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100510/bc56ccf9/attachment.html>


More information about the devel mailing list