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

Alex castornightmare at gmail.com
Mon Mar 14 15:02:26 UTC 2011


Thanks for your quick answer.

I know my version is a little bit deprecated ... but i'm using the
WithProperties method and it works !
My example is wrong, no doubt about this ... anyway do you know a way to
achieve what i need to do ?

Thanks.

Alex


2011/3/14 Dustin J. Mitchell <dustin at v.igoro.us>

> 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.
>
> Dustin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110314/5290ec68/attachment.html>


More information about the devel mailing list