Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39108

Add recipient exclusion field to email notifications for broken builds

      There are cases in build setup where you want to have "notify people who broke the build" or equivalent selected, but certain people (or internal system committer users/etc.) should not be notified just because a developer broke the build.

      In my case, it's cause we have a separate repository with CI utility scripts that is included in the checkouts. As it stands now, if a dev on the main project repo breaks something - any committer on the CI tools repo ALSO gets notifications of those failing builds in the mean time. Granted - they could be a build breaker, but in our environment, that's the .1% case.

      Suggested implementation:

      Exclude Recipients: [ ] - takes a comma separated list of email addresses
      and/or
      Exclude Patterns: [ multiline ] - takes a newline separated list of regexes or email addresses

      Note - I've listed both mailer-plugin and ext-mail-plugin as they both have this functionality, but I expect that this issue will need to be split/cloned.

          [JENKINS-39108] Add recipient exclusion field to email notifications for broken builds

          Alex Earl added a comment -

          You can already do this in the global config for email-ext. There is a place to put excluded committers.

          Alex Earl added a comment - You can already do this in the global config for email-ext. There is a place to put excluded committers.

          Unfortunately, that doesn't really help this use case. In most projects, I do want notifications, but for certain jobs - I don't want the notifications because they are virtually never because of my (or certain ops users) commits – specifically for those jobs.

          Nathan Neulinger added a comment - Unfortunately, that doesn't really help this use case. In most projects, I do want notifications, but for certain jobs - I don't want the notifications because they are virtually never because of my (or certain ops users) commits – specifically for those jobs.

          Alex Earl added a comment -

          A presend script would work as well.

          Alex Earl added a comment - A presend script would work as well.

          Alex Earl added a comment -

          This can be achieved by using a pre-send script to filter email addresses.

          Alex Earl added a comment - This can be achieved by using a pre-send script to filter email addresses.

            slide_o_mix Alex Earl
            nneul Nathan Neulinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: