[Buildbot-devel] Condition a step according to a WithProperties value

Benoît Allard benoit at aeteurope.nl
Mon Mar 14 15:39:57 UTC 2011


Alex wrote:
> My example is wrong, no doubt about this ... anyway do you know a way to 
> achieve what i need to do ?
> 

You can proably write your own step that inherit from ShellCommand, and 
use python to define your command inside the start method, idealy, your 
new step would have two parameters: branch and revision, feeded with 
WithProperties, and the start command would look like:

def start(self):
   if self.branch:
     command.extend(['-p', branch])
   if self.revision:
     command.extend(['-b', revision])

Benoit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6370 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://buildbot.net/pipermail/devel/attachments/20110314/75716ce8/attachment.bin>


More information about the devel mailing list