[Buildbot-devel] BuildBot setProperty in MasterShellCommand

Dustin J. Mitchell dustin at v.igoro.us
Sat Jul 30 22:27:18 UTC 2011


On Sat, Jul 30, 2011 at 4:27 AM, Ian Zimmerman <itz at buug.org> wrote:
> You could send the number down to the slave using FileDownload and then
> set the property with a SetProperty step (using a custom extract_fn maybe).
>
> Not the most elegant of solutions, I know.

The problem with
 factory.addStep(CommandToSetProperty(buildnumber=getBuildNumberFromAnotherDB())
is that it will be executed at configuration time - which is probably
not when you want to get that build number.  What makes a lot of this
awkward is that you want to run Python code at a particular time in
the build process.  Subclassing MasterShellCommand is the best way to
do this.

Dustin




More information about the devel mailing list