How to remove a user from Jenkins build failure message recipients

I get daily "Jenkins build is unstable" messages for a project that I no longer work on.

From the result of the assembly (build.xml) it can be seen that I got into the list of “culprits” because of a commit that I made a while ago, and since the assembly was unstable for several weeks, the list of criminals was not cleared.

Since I am no longer working on this project, I want to stop receiving email notifications from this Jenkins work. How can I remove myself from recipients? Should I edit build.xml of the last build? (EDIT: apparently this approach does not work)

+6
source share
2 answers

Could you just spam the filter / block email by name in your mail client? Most Jenkins mailing lists will have a common name (with only different status, build number). Based on different tasks, they will have different common names. Therefore, block the “offensive” email by name.

To get Jenkins to “free” you from criminals, the assembly must succeed. If you have access to the job configuration, you can make a fake build of success (a simple “exit 0” on the command line is enough), but it will also clear all other criminals.

0
source

Perhaps, but a little complicated. First, you need to stop Jenkins or put it into silent mode to avoid further builds.

Since the actual list of culprits is calculated at runtime from all recently completed crashes, you need to remove your identifier from the list of culprits in the build.xml file of all failed assemblies (since the last successful), where it is listed.

Finally, restart Jenkins so that the internal data structure is updated from the modified build.xmls file.

So, if build 10 was the last successful, you need to remove the ID from builds / 11 / build.xml, builds / 12 / build.xml, etc.

+3
source

All Articles