[Buildbot-devel] Sharing common configurations for different buildfarms
Stefan Seefeld
seefeld at sympatico.ca
Mon Dec 4 18:17:37 UTC 2006
Benoit Sigoure wrote:
> Hello people
>
> I have quite a lot of buildfarms running with buildbot and the configuration is
> very redundant. I'd like to share it (all the buildsteps) among different
> buildfarms, how would you advice me to do this? I'm not very good in Python so
> if you could provide me with an example it'd be great. Can I simply put a
> Python file somewhere that defines a class that creates the buildsteps and
> import it from the master.cfg's? Where would you advise me to put this Python
> file?
You may put such a python module (or even package) at any place convenient for
you. If this place isn't searched by default you could add the path to sys.path
before importing the module into master.cfg.
> Now say that I have a complete BuildFactory (with all the steps) how can I
> (deep)copy it and change only a given step (say, the configure step) ?
Python has a 'copy' module that offers deep-copying of (almost) arbitrary objects.
However, I think it would be cleaner to somehow parametrize the factory object / function
you describe so you pass in the aruments that vary among the builders.
HTH,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
More information about the devel
mailing list