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

Dustin J. Mitchell dustin at v.igoro.us
Mon Mar 14 14:55:34 UTC 2011

On Mon, Mar 14, 2011 at 10:50 AM, Alex <castornightmare at gmail.com> wrote:
> i'm using buildbot 0.7.4 (the one packaged on debian etch, quite old, i know
> ... but it is a big work to upgrade for us).

This is absolutely ancient.  I'm surprised that WithProperties was
supported in that version.

> ================
> if WithProperties("-p %s", "branch"):
>     f.addStep( .....
> else:
>     f.addStep( .....
> ================

At any rate, this won't work - WithProperties cannot be evaluated
until the build is in progress, but of course addStep must be
evaluated beforehand.


More information about the devel mailing list