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

Send emails to the commit author instead of the committer for specified committers

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • mailer-plugin
    • None

      The "Send separate e-mails to individuals who broke the build" option sends emails to the commit's committers. However, there are cases when it's better to send emails to the commit's authors instead.

      We use Gerrit for hosting our Git repositories and its workflow consists in pushing commits to pseudo-branches for review. After the commits have been approved they are submitted (integrated) automatically into the real branch, but this action is performed by Gerrit which may have to rebase the original commit in order to be able to tuck it on top of the current branch's HEAD. In these cases, the actual commit's committer becomes an administrative user. In our case we configured it to be a user called gerrit with an email like gerrit@ourdomain.com.

      So, for these commits it doesn's work to send notifications to the commit's committer. They should be sent to the commit's author instead.

      What I propose is that there should exist another configuration option where we could specify a list of emails (a Regexp would also do). If the committer's email matches one of the emails specified, then the notifications should be sent to the commit's author instead.

      This option should be subordinated to the "Send separate e-mails to individuals who broke the build" option.

            Unassigned Unassigned
            gnustavo Gustavo Chaves
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: