[Buildbot-devel] Strange Properties beheavior

Francesco Di Mizio francescodimizio at gmail.com
Fri Apr 24 10:37:49 UTC 2015


I am an idiot, p4client_root was not renderable ;)

On Fri, Apr 24, 2015 at 10:56 AM, Francesco Di Mizio <
francescodimizio at gmail.com> wrote:

> Example custom step.
>
> P4(
>            p4port='IP:PORT',
>            p4client=util.Interpolate('%(prop:p4client)s'),
>            p4client_root=util.Interpolate('%(prop:ws_root)s'),
>            .....
>
>
> Those two properties are actually set by the same SetPropertyFromCommand
>  step.
> while prop:p4client is passed in correctly, prop:ws_root is not somehow
> despite it can be seen on the webpage.
>
> If I print the value received by the custom step from inside the step with
>
> log.msg('p4client_root %s' %self.p4client_root)
>
> here's what I get:
>
> p4client_root Interpolate('%(prop:ws_root)s')
>
> So basically the interpolation is not happening, just string replacement.
>
> If I use util.Property('ws_root') instead of Interpolate:
>  p4client_root=Property('ws_root') from the logging line I get
>
> p4client_root <buildbot.process.properties.Property object at 0x4737f10>
>
> Those two properties are actually set by the same
> SetPropertyFromCommand  step.
>
> Any idea?
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150424/7c6d45af/attachment.html>


More information about the devel mailing list