[Buildbot-devel] Adding interpolated property in a build step

Alexander Sack pisymbol at gmail.com
Thu Jul 26 01:43:33 UTC 2012

On Wed, Jul 25, 2012 at 6:37 PM, Philippe McLean
<philippe.mclean at gmail.com> wrote:
> here is an example of using properties to save the output of a command
> executed on the slave, then later using that value in another buildstep:
> # determine absolute path of build directory
>     factory.addStep(SetProperty(command=["python", "-c", "import os, sys;
> print os.getcwd(); sys.exit(0)"], property='absBuildDir'))

Thank you.  However, that's not what I want!  (The doc is quite clear
about the above).

I want to be able to define a new property without executing a
command.  The equivalent of:

factory.addStep(add to the builds properties dictionary the following
{ 'filename' : WithProperties(my_file_%(suffix)s) })

Then in another build step down the build

factory.addStep(do something and use WithProperties(%(filename)s))


So I need:

1)  To define a property that does not need to execute anything external
2)  Be able to use that property with interpolation since its values
are calculated at the time of the step

Seems like a reasonable request to me!  :-)


More information about the devel mailing list