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

Add recipient exclusion field to email notifications for broken builds

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          slide_o_mix 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.

          Show
          slide_o_mix 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.
          Hide
          nneul 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.

          Show
          nneul 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.
          Hide
          slide_o_mix Alex Earl added a comment -

          A presend script would work as well.

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

            People

            • Assignee:
              davidvanlaatum David van Laatum
              Reporter:
              nneul Nathan Neulinger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: