-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send one notification for a matrix job #220
Comments
Might be related to #74
I hope the problem is that matrix configuration project doesn't have any steps for parent job itself, in other case it would be easy to attach generic notification steps to them |
I'm actually interested in the notification about the build result, not about notification about queuing, so it's a separate issue. It looks like the plugins that want to utilize the top-level job need to use a special mechanism (the MatrixAggregator class): https://issues.jenkins-ci.org/browse/JENKINS-20984 |
Looks like implementing matrix support is not really hard Only question is if it will create dependency bound to the matrix job plugin (but I hope most Jenkins installations have it by default) |
It turns out |
Yes, implementing We've discussed some listener implementations in #74 |
The top-level notification could use the listener, while the per-configuration notification could (and probably should) use the existing mechanism. As long as the new functionality is not enabled, the plugin should just work as before. I hope it's possible to detect a matrix job for the purpose of hiding irrelevant checkboxes without introducing a hard dependency. |
Stash notifier sends multiple notifications then used in a multi-configuration (matrix) job. There is a risk that the PR would appear to be "approved" by Jenkins before all jobs complete, creating a window of "opportunity" to merge broken code.
A simple fix is to require a minimal number of successful builds. But it's a not a reliable fix. New configurations can be added to the matrix build, making the check unreliable. Likewise, some configurations can be removed, making all PRs unmergeable until an admin changes the threshold. Both has happened to me.
I believe the best solution would be to send a single notification from the top-level process. That way, I could require one successful build for merging a PR, and that number is not likely to change.
My environment: Jenkins 2.150.2, Stash notifier 1.15.
The text was updated successfully, but these errors were encountered: