[Buildbot-devel] BuildBot setProperty in MasterShellCommand

Timothy Chen tchen at nicira.com
Sat Jul 30 00:04:31 UTC 2011


BuildBot Dev -

I'm trying to do something that at face value that I thought would be simple
but has turned out to be slightly more complicated.

I want to get build numbers out of another database separate from buildbot.
 But I need to set it in a property to be passed in a factory step such
that:

factory = BuildFactory()
# check out the source
factory.addStep(Git(repourl='git://github.com/buildbot/pyflakes.git',
mode='copy'))
factory.addStep(CommandToSetProperty(buildnumber=getBuildNumberFromAnotherDB())
# run the tests (note that this will require that 'trial' is installed)
factory.addStep(ShellCommand(command=["DoCustomBuild",
"WithMYBuildNumber"]))

I thought the BuildBot way to do this would be to write a custom buildstep
in MasterShellCommand.  Am I thinking the right way or missing something
fundamental?

I have a subclass inherited from MasterShellCommand and am attempting to
setProperty within, but it seems awkward at best.  So I guess my questions
are:

- How do I set properties on the buildmaster in addStep?
- Is this even a good idea?

Thanks -

Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110729/1bed7770/attachment.html>


More information about the devel mailing list