buildbot
buildbot copied to clipboard
How to make buildbot load configuration dynamically?
After executing buildbot start, the master loads the configuration from master.cfg. If some key values in the BuildmasterConfig are modified after the buildbot runs, how can the buildbot dynamically load the modified BuildmasterConfig?
@ChungChyi Check out https://github.com/buildbot/buildbot_travis. This is what buildbot.buildbot.net uses under the hood which is configurable via https://github.com/buildbot/buildbot/blob/master/.bbtravis.yml.
Configuration is here: https://github.com/buildbot/metabbotcfg.
@p12tic Thank you for your answer. Is it possible to do dynamic reconfig on windows system? My idea is this, I wrote a front-end page that receives configuration information, and on the back-end, I don't know how to make the buildbot reload the configuration based on a dictionary of configurations or a BuildMaster instance.
I'm afraid the reconfig part is not implemented on Windows. However, if you use https://github.com/buildbot/buildbot_travis you don't actually need to reconfig because it updates its configuration automatically from a file in repository.