I would volunteer to implement this as a native feature of the plugin to keep it consistent with the existing trigger configuration, by just having a simple checkbox to activate this feature. This might be easier than a groovy script especially together with the configuration slicing plugin and when you have a couple of hundred/thousand builds to manage. I see the following options with decreasing preference.
- Option 1:
Add a new "Send to Upstream Committers"
Main benefit is that it doesn't change existing functionality and is the most flexible one with regards to configuration
- Option 2:
Change behaviour of "Send To Culprits"
You can say that when a build is triggered by a SCM change in a upstream build the committer(s) of the upstream build(s) might be the culprit(s). Drawback is that this changes the current behaviour.
- Option 3:
Change behaviour of "Send to Requester"
You can say that when a build is triggered by a SCM change in a upstream build the committer(s) of the upstream build(s) might be the requester(s) although only implicitly. Drawback is the same as option 2 that this changes the current behaviour.
I have the implementation actually available, so I would like to hear your opinion which option you prefer.
You can do this now with a groovy script.
Quoted from the mailing list: