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

Emails notification send to inapropriate persons

      I have a Jenkins job that uses Extended E-mail Notification plugin to send info after build done and Git plugin to clone repo. I set

      $BUILD_USER_EMAIL

      in "Editable Email Notification" form as recipient and it basically works. But... When resulting build page contains Git changes list (like on attached screenshot) 

      I found in logs that Jenkins for some reason tries to send email to user that triggered the build AND ALSO to each author of listed Git changes:

      Email was triggered for: Always 
      Sending email for trigger: Always 
      Not sending mail to unregistered user jake@best.com because your SCM claimed this was associated with a user ID 'jake' which your security realm does not recognize; you may need changes in your SCM plugin 
      Not sending mail to unregistered user john@best.com because your SCM claimed this was associated with a user ID 'john' which your security realm does not recognize; you may need changes in your SCM plugin 
      Not sending mail to unregistered user jim@best.com because your SCM claimed this was associated with a user ID 'jim' which your security realm does not recognize; you may need changes in your SCM plugin 
      Sending email to: sammy@best.com jim@best.com 
      Finished: SUCCESS

       

          [JENKINS-73079] Emails notification send to inapropriate persons

          Alejandro created issue -
          Alejandro made changes -
          Description Original: {color:#0c0d0e}I have a Jenkins job that uses Extended E-mail Notification plugin to send info after build done and Git plugin to clone repo. I set {color}
          {code:java}
          $BUILD_USER_EMAIL{code}
          {{{} in "{}}}{color:#0c0d0e}Editable Email Notification" form as recipient and it basically works. But... When resulting build page contains Git changes list (like on attached screenshot) {color}

          I found in logs that Jenkins for some reason tries to send email to user that triggered the build AND ALSO to each author of listed Git changes:
          {noformat}
          Email was triggered for: Always {noformat}
          {noformat}
          Sending email for trigger: Always {noformat}
          {noformat}
          Not sending mail to unregistered user jake@best.com because your SCM claimed this was associated with a user ID 'jake' which your security realm does not recognize; you may need changes in your SCM plugin {noformat}
          {noformat}
          Not sending mail to unregistered user john@best.com because your SCM claimed this was associated with a user ID 'john' which your security realm does not recognize; you may need changes in your SCM plugin {noformat}
          {noformat}
          Not sending mail to unregistered user jim@best.com because your SCM claimed this was associated with a user ID 'jim' which your security realm does not recognize; you may need changes in your SCM plugin {noformat}
          {noformat}
          Sending email to: sammy@best.com jim@best.com {noformat}
          {noformat}
          Finished: SUCCESS{noformat}
          {color:#0c0d0e} {color}
          New: {color:#0c0d0e}I have a Jenkins job that uses Extended E-mail Notification plugin to send info after build done and Git plugin to clone repo. I set {color}
          {code:java}
          $BUILD_USER_EMAIL{code}
          {{{}in "{}}}{color:#0c0d0e}Editable Email Notification" form as recipient and it basically works. But... When resulting build page contains Git changes list (like on attached screenshot) {color}

          I found in logs that Jenkins for some reason tries to send email to user that triggered the build AND ALSO to each author of listed Git changes:
          {noformat}
          Email was triggered for: Always {noformat}
          {noformat}
          Sending email for trigger: Always {noformat}
          {noformat}
          Not sending mail to unregistered user jake@best.com because your SCM claimed this was associated with a user ID 'jake' which your security realm does not recognize; you may need changes in your SCM plugin {noformat}
          {noformat}
          Not sending mail to unregistered user john@best.com because your SCM claimed this was associated with a user ID 'john' which your security realm does not recognize; you may need changes in your SCM plugin {noformat}
          {noformat}
          Not sending mail to unregistered user jim@best.com because your SCM claimed this was associated with a user ID 'jim' which your security realm does not recognize; you may need changes in your SCM plugin {noformat}
          {noformat}
          Sending email to: sammy@best.com jim@best.com {noformat}
          {noformat}
          Finished: SUCCESS{noformat}
          {color:#0c0d0e} {color}
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            alejandrinho Alejandro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: