On Thu, Aug 8, 2019 at 4:40 AM Clément Hurlin
<clement.hur...@provenrun.com> wrote:
>   Do you mean your bot entire configuration is in master.cfg ? If that's the 
> case, you can split by using regular python modules. For example my 
> master.cfg is usually simply:
>
> # Use master.py instead
> from master import *
>
> And then master.py is like the regular root file of a python projects, with 
> submodules being imported. For example I'm used to configure the build, the 
> steps, the schedulers, etc. in different files.

Alternately you can even have master.cfg parse a json file to reduce
the amount of repeated boilerplate,
see 
https://github.com/buildbot/buildbot/blob/master/master/docs/examples/gitlab.cfg
for an example.  I do this... and my master.json is rather large,
https://github.com/Oblong/obs/blob/master/buildbot/master.cfg
https://github.com/Oblong/obs/blob/master/buildbot/master.json
- Dan
_______________________________________________
users mailing list
users@buildbot.net
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to