I am looking for possibility to filter out email notifications of part of commiters.
The root of the problem is a sending by TeamCity an email notification about failed build to all commiters after GIT merge.
1. Developer 'A' creates a branch from master and works on it, branch is not stable (complitely 'red')
2. 10 other people does commits to master branch
3. 'A' pulls all latest changes from master to his branch, merge changes and pushes it back to his origin/branch
4. TeamCity build fails and all 10 people recieves email notifications about failed build on this branch
As result - tons of not relevant notifications fills mailbox and of course lands in junk folder
Looks like this:
I have an idea to write a plugin, that will catch email notifications before sending mails and will filter out all irrelevant users from the list.
I thought do this in "buildFinished" event handler but I am just confused what a object/manager can I use for this?
Any help will be accepted with appreciation