buildbot icon indicating copy to clipboard operation
buildbot copied to clipboard

How to make buildbot load configuration dynamically?

Open ChungChyi opened this issue 2 years ago • 3 comments

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 avatar Aug 08 '22 18:08 ChungChyi

@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 avatar Aug 10 '22 14:08 p12tic

@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.

ChungChyi avatar Aug 16 '22 03:08 ChungChyi

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.

p12tic avatar Aug 19 '22 15:08 p12tic