• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • email-ext-plugin
    • None
    • Jenkins version 1.589 . Email Extension Plugin version 2.39

      Hello.

      I am seeing this issue using Jenkins 1.589 and email-ext 2.39.

      Jenkins tries to notify the developers (i.e. all the people who caused a change in the change set.) the build's result, but with a wrong email address. The real name (plus domain) is used instead of the actual email address.

      For example :
      1) author of the SVN commits is "lello maria"
      2) Jenkins tries to send an email to lello@domain and maria@domain, instead of lello.maria@domain

      Regards,
      Andrea

          [JENKINS-26808] Email to developers uses wrong email address

          Alex Earl added a comment -

          This is not a bug, its trying it's best guess at the email address since it doesn't know. You can assign the email address in the user's page on Jenkins and it will then use the correct address.

          Alex Earl added a comment - This is not a bug, its trying it's best guess at the email address since it doesn't know. You can assign the email address in the user's page on Jenkins and it will then use the correct address.

          Daniel Beck added a comment -

          To add to what Alex wrote, unset the default email domain in the global config so it doesn't send emails to foo@domain speculatively.

          Daniel Beck added a comment - To add to what Alex wrote, unset the default email domain in the global config so it doesn't send emails to foo@domain speculatively.

          Hello Alex and Daniel.

          Thanks for your answers. I understood that this is not a bug.

          Anyway, I have the following issue.

          As you know, the file /job/<job_name>/builds/$BUILD_NUMBER/changelog.xml
          contains the authors of all the SVN (in my case) commits. I decided to send an email
          to all these developers in case of the build is marked as "Success".

          So, since the file changelog.xml contains the following rows ( I am reporting only the "author" section):

          <author>lello maria</author>
          <author>mario bruno</author>

          the emails are sent to lello@domain , maria@domain, mario@domain and bruno@domain.

          Is there a workaround to resolve my problem ?

          Andrea Maria Masi added a comment - Hello Alex and Daniel. Thanks for your answers. I understood that this is not a bug. Anyway, I have the following issue. As you know, the file /job/<job_name>/builds/$BUILD_NUMBER/changelog.xml contains the authors of all the SVN (in my case) commits. I decided to send an email to all these developers in case of the build is marked as "Success". So, since the file changelog.xml contains the following rows ( I am reporting only the "author" section): <author>lello maria</author> <author>mario bruno</author> the emails are sent to lello@domain , maria@domain, mario@domain and bruno@domain. Is there a workaround to resolve my problem ?

          Hello Alex.

          Thanks for your answer. I understood that this is not a bug.

          Anyway, I have the following issue.

          As you know, the file /job/<job_name>/builds/$BUILD_NUMBER/changelog.xml
          contains the authors of all the SVN (in my case) commits. I decided to send an email
          to all these developers in case of the build is marked as "Success".

          So, since the file changelog.xml contains the following rows ( I am reporting only the "author" section):

          <author>lello maria</author>
          <author>mario bruno</author>

          the emails are sent to lello@domain , maria@domain, mario@domain and bruno@domain.

          Is there a workaround to resolve my problem ?

          Regards,
          Andrea

          Andrea Maria Masi added a comment - Hello Alex. Thanks for your answer. I understood that this is not a bug. Anyway, I have the following issue. As you know, the file /job/<job_name>/builds/$BUILD_NUMBER/changelog.xml contains the authors of all the SVN (in my case) commits. I decided to send an email to all these developers in case of the build is marked as "Success". So, since the file changelog.xml contains the following rows ( I am reporting only the "author" section): <author>lello maria</author> <author>mario bruno</author> the emails are sent to lello@domain , maria@domain, mario@domain and bruno@domain. Is there a workaround to resolve my problem ? Regards, Andrea

          Hi Alex.

          I added the following builld step :

          Andrea Maria Masi added a comment - Hi Alex. I added the following builld step :

          Hi Alex.

          I added the following build step, before the post-build actions :

          egrep \<author\> /home/masia/.jenkins/jobs/EPIC/builds/${BUILD_ID}/changelog.xml | sed -e 's/author>(.) (.)<\/author>/author>\1.\2<\/author>/' > ./pippo.txt
          mv ./pippo.txt /home/masia/.jenkins/jobs/EPIC/builds/${BUILD_ID}/changelog.xml

          I will let you know if my issue has been resolved.

          Regards,
          Andrea

          Andrea Maria Masi added a comment - Hi Alex. I added the following build step, before the post-build actions : egrep \<author\> /home/masia/.jenkins/jobs/EPIC/builds/${BUILD_ID}/changelog.xml | sed -e 's/author>(. ) (. )<\/author>/author>\1.\2<\/author>/' > ./pippo.txt mv ./pippo.txt /home/masia/.jenkins/jobs/EPIC/builds/${BUILD_ID}/changelog.xml I will let you know if my issue has been resolved. Regards, Andrea

          Hi Alex.

          The solution has worked fine.

          Thanks again.

          Regards,
          Andrea

          Andrea Maria Masi added a comment - Hi Alex. The solution has worked fine. Thanks again. Regards, Andrea

          Hi Alex.

          The solution ( changelog.xml modified before to start the post build action) has worked fine.

          Thanks again.

          Regards,
          Andrea

          Andrea Maria Masi added a comment - Hi Alex. The solution ( changelog.xml modified before to start the post build action) has worked fine. Thanks again. Regards, Andrea

            slide_o_mix Alex Earl
            ammasi Andrea Maria Masi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: