Send email notifications when a build fails
GitLab CI seems to quietly accept that builds have failed without doing anything about it... it'd be good if you could enable an option for email notifications on a per-project basis.
Potential email options are:
- Email everyone on the project
- Email the person who broke the build
- Email project Masters
- No emails
We’re accepting a contribution that sends an email (broken/passed) to all the email addresses in a whitespace separated text field of the project. We can’t use the GitLab project members since there is no API for that and we will not add it. Normally you use merge requests to be informed about the build status.
From the pull request:
I'm very interested in this as well and was planning to implement this. The idea I had to implement this was to extend the API of GitLab which GitLab-CI would send requests to. All notifications would be handled by GitLab. GitLab already handles notifications, users and the users can themselves change notification settings.
Jeroen Knoops commented
Implemented this feature. See PR#317
For me GitLab CI works great as it is nicely integrated with GitLab but in daily use it is very frustrating not being notified if a build fails. With projects that contain allot of dependencies it is vital to keep the team up to date with failing builds. At this moment is is the main reason to consider a switch to Jenkins.