Hi, does the reconfig operation really refresh the list of tags?
I did some tests with this method and it seems reconfig does not refresh the choice-list. It is required to actually restart the server and this has some other negative implications. Is there a way to modify the force-scheduler choice-list somehow? Falk From: Pierre Tardy [mailto:tar...@gmail.com] Sent: Donnerstag, 20. Oktober 2016 09:44 To: Tristram, Falk; users@buildbot.net Subject: Re: [us...@bb.net] ForceScheduler trouble converting from 0.8.12 to 0.9.0 Hi, This is a good idea indeed. Instead of trying to play with sighup, why not calling the reconfig API, as you are already in the master? Here is an AnyBranchScheduler version that instead of creating new builds, will just reconfig the master: class ReconfigMasterAnyBranchScheduler(AnyBranchScheduler): def addBuildsetForChanges(self, waited_for=False, reason='', external_idstring=None, changeids=None, builderNames=None, properties=None, **kw): self.master.reconfig() So that what you just need is to create a ChangeFilter combination that matches your tag. Pierre Le jeu. 20 oct. 2016 à 08:59, Tristram, Falk <falk.trist...@cognex.com<mailto:falk.trist...@cognex.com>> a écrit : A cronjob may do the job, but this is my last option. I am currently looking into options that are more intrinsic and event-based. According to the command line parameters, the buildbot reacts to SIGHUP “SIGHUP a buildmaster to make it re-read the config file” So it should be possible to emit this signal via python from inside the bot, right? Then the bot will reconfig. I didn’t test this so far. The next item would be just to recognize tag-changes from a (Git)Poller or similar. I would prefer a solution that circumvents this problem by updating the value on a time basis. This could be done by a “Poller” that updates the list of tags every five minutes. What you can do is to generate the list of choice during the configuration in your master.cfg. And you can add a external cronjob that does buildbot reconfig every now and then.
_______________________________________________ users mailing list users@buildbot.net https://lists.buildbot.net/mailman/listinfo/users