[Buildbot-devel] Programmatical configuration of builds
dank at kegel.com
Wed Feb 13 17:01:02 UTC 2013
On Wed, Feb 13, 2013 at 7:53 AM, Владимир Игнатьев
<ya.na.pochte at gmail.com> wrote:
> Could you tell, if there is the way to configure master.cfg 100%
Since master.cfg is python code, yes.
> I need a simple web ui, which will setup customized predefined build confs
> for our developers team. Is it possible to do that?
> What could you recommend to reach that goal?
Yes. One way to approach this might be to write python
code that takes a json file describing the project
being built, and populate the BuildmasterConfig dict.
Then your web app could output a json file and tell
buildbot to restart.
(There are of course other ways to do it, but json is a familiar medium.)
This idea is partly described in http://trac.buildbot.net/ticket/2218
Here's another example.
is python code to read a json file and populate the dict.
is a master.cfg that uses it.
is an example json file.
Does that help?
More information about the devel