[Buildbot-devel] WithProperties?

Amber Yust ayust at yelp.com
Tue Dec 14 16:33:50 UTC 2010


If your property is named projectName, then...

where you'd normally have, say, foo='blah/tags/current'

Instead, use the following:

foo=WithProperties('%(projectName)s/tags/current')

(Note - this isn't a regex, it's Python string interpolation with a few
extra syntaxes.)

~Amber

On Tue, Dec 14, 2010 at 7:59 AM, Christian Unger <christian.unger at me.com>wrote:

>
> I'm sorry, but I am really having a hard time wrapping my brain around
> properties in buildbot.
>
> so I have a BuildFactory, where I do an svn source checkout of
> 'projectName/trunk',
> where projectName is dynamic and can be set on the waterfall page as the
> branch property.
> the next step tags this as 'projectName/tags/current' by using a shell
> script which is able to determine the projectName without buildbot
> interaction.
>
> now the third step should be able to checkout  'projectName/tags/current'
> and retrieve projectName from the build properties.
> my question is how to inject a regex into my build steps which extracts
> this string from the branch property.
>
> any help very much appreciated
>
> thanks in advance
>
>   __
> cu
> christian unger
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20101214/cb0042bf/attachment.html>


More information about the devel mailing list