[users at bb.net] Scheduler set custom property based on changed files

Povilas Kanapickas povilas at radix.lt
Wed Aug 19 16:29:39 UTC 2020


On 8/19/20 4:35 AM, Ryan Schmidt wrote:
> Hi,
> I continue to ponder my buildbot 2.8.2 configuration. I have a SingleBranchScheduler using treeStableTimer and I may want to use collapseRequests later, so a single build could have multiple changes, each having changed multiple files. I would like to set a property on each scheduled build whose value is computed based on the files that were modified. (I also have a ForceScheduler where the user will be able to set this property directly.)
> I see that the scheduler attribute "builderNames" was changed to accept an IRenderable that can compute its value based on, among other things, the list of files that were modified:
> https://github.com/buildbot/buildbot/pull/3534
> But it looks like the scheduler attribute "properties" must still be specified as a hardcoded dictionary. Would it be reasonable to give "properties" the same treatment that was given to "builderNames" and make it accept an IRenderable too, or is there a different preferred way to accomplish this? Can I misuse a "builderNames" renderable to set a build's properties? Or should I just use a custom step as the first step of the builder to set the property based on the changed files?

This is a complex question and hints to a missing functionality. Could
you file an issue in Github so that it could be tracked over long-term?

Currently I can't answer the question right off the top of my head.


> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users

More information about the users mailing list