• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • email-ext-plugin
    • None
    • Jenkins 2.2 and current version of all plugins.

      In Jenkins 2.2 with Ext-email 2.42, I always see "An attempt to send an e-mail to empty list of recipients, ignored." I have one explicit email address set in global configuration and am using $DEFAULT_RECIPIENTS in my project.

          [JENKINS-34731] Can't send email.

          Chris Nelson created issue -

          Chris Nelson added a comment -

          The built-in email notification works. This log snippet is with both enabled.

          Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur.
          Sending e-mails to: cnelson@******.com
          Email was triggered for: Failure - Any
          Sending email for trigger: Failure - Any
          An attempt to send an e-mail to empty list of recipients, ignored.

          Chris Nelson added a comment - The built-in email notification works. This log snippet is with both enabled. Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur. Sending e-mails to: cnelson@******.com Email was triggered for: Failure - Any Sending email for trigger: Failure - Any An attempt to send an e-mail to empty list of recipients, ignored.

          Alex Earl added a comment -

          Please enable debug mode for email-ext in the manage Jenkins area. There is a check box there for it. Then rerun the job and post the log.

          Alex Earl added a comment - Please enable debug mode for email-ext in the manage Jenkins area. There is a check box there for it. Then rerun the job and post the log.

          Chris Nelson added a comment -

          Thanks, Alex. The only log related to the job is

          <my project name> #9 main build action completed: FAILURE

          Chris Nelson added a comment - Thanks, Alex. The only log related to the job is <my project name> #9 main build action completed: FAILURE

          Alex Earl added a comment -

          Please check that you enabled debug mode in the "Configure System" area under the Extended Email Publisher. Can you verify that "Recipient List" is setup in the Failure trigger in the Advanced area in the job itself?

          Alex Earl added a comment - Please check that you enabled debug mode in the "Configure System" area under the Extended Email Publisher. Can you verify that "Recipient List" is setup in the Failure trigger in the Advanced area in the job itself?
          Alex Earl made changes -
          Chris Nelson made changes -
          Attachment New: Global configuration.png [ 32671 ]

          Chris Nelson added a comment -

          In the Advanced settings, Triggers -> Failure - Any listed "Developers" but not "Recipient List." When I add Recipient List my console output says:

          Checking if email needs to be generated
          Email was triggered for: Failure - Any
          Sending email for trigger: Failure - Any
          messageContentType = text/plain; charset=UTF-8
          Adding recipients from project recipient list
          Adding recipients from trigger recipient list
          Setting In-Reply-To since last build was not successful
          Successfully created MimeMessage
          Sending email to: <me>

          If not including the recipient list is the default, that's not very helpful. I would not have expected to have to open Advanced settings to get basic functionality.

          Chris Nelson added a comment - In the Advanced settings, Triggers -> Failure - Any listed "Developers" but not "Recipient List." When I add Recipient List my console output says: Checking if email needs to be generated Email was triggered for: Failure - Any Sending email for trigger: Failure - Any messageContentType = text/plain; charset=UTF-8 Adding recipients from project recipient list Adding recipients from trigger recipient list Setting In-Reply-To since last build was not successful Successfully created MimeMessage Sending email to: <me> If not including the recipient list is the default, that's not very helpful. I would not have expected to have to open Advanced settings to get basic functionality.

          Chris Nelson added a comment - - edited

          A separate issue, I'm sure, but $BUILD_URL doesn't seem to include a protocol. The only reason I am using this plugin instead of the built-in functionality is so that my notification has a clickable link to the job. I guess I at least gain the ability to put "http://$BUILD_URL" in the body but it's odd that the URL is incomplete.

          Chris Nelson added a comment - - edited A separate issue, I'm sure, but $BUILD_URL doesn't seem to include a protocol. The only reason I am using this plugin instead of the built-in functionality is so that my notification has a clickable link to the job. I guess I at least gain the ability to put "http://$BUILD_URL" in the body but it's odd that the URL is incomplete.

          Alex Earl added a comment -

          Not including the recipient list by default for failures is a historical issue. It was that way for a long time and when I tried enabling recipient list for Failures, people were upset that the behavior changed.

          For BUILD_URL, it takes it from the following: jenkins.getRootUrl() + build.getUrl(), check your URL setting in the Manage Jenkins area under "Jenkins Location Configuration"

          Alex Earl added a comment - Not including the recipient list by default for failures is a historical issue. It was that way for a long time and when I tried enabling recipient list for Failures, people were upset that the behavior changed. For BUILD_URL, it takes it from the following: jenkins.getRootUrl() + build.getUrl(), check your URL setting in the Manage Jenkins area under "Jenkins Location Configuration"

            slide_o_mix Alex Earl
            chrisnelsonpe Chris Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: