0

I want to send build results - whether it is SUCCESS or FAILURE to some recipients. In Extended E-mail Notification config I set reply to list to some gmail mail.

enter image description here

In my after build section for notification of the job I left notification config as is

enter image description here

But when build fails it does not send notification as recipients list is considered empty.

enter image description here

What is the problem?

lapots
  • 12,553
  • 32
  • 121
  • 242

1 Answers1

1

Either you fill the Default Recipients inside "Extended E-Mail Notification" and use as Project Recipient List $DEFAULT_RECIPIENTS or you specify directly the e-mail adresses (comma seperated) inside the Project Recipient List

One of the both fields must contain a valid e-mail adress. Otherwhise it will fail with An attempt to send an e-mail to empty list of recipients, ignored. failure.

Additionaly try to verify: Jenkins email-ext plugin thinks I have no recipients configured

Community
  • 1
  • 1
Danny.
  • 363
  • 1
  • 4
  • 23
  • I set `default recipients` to empty and set `project recipient list` to `example@gmail.com` and it still considers recipient list empty – lapots Apr 04 '17 at 15:58
  • Since your screenshots showed different settings, I wrote this answer. Are you sure the error message is the same? – Danny. Apr 04 '17 at 15:59
  • well I adjusted according to your comment and it is the samel `An attempt to send an e-mail to empty list of recipients, ignored. Finished: FAILURE` – lapots Apr 04 '17 at 16:01
  • 1
    Maybe this helps: http://stackoverflow.com/questions/37144078/jenkins-email-ext-plugin-thinks-i-have-no-recipients-configured . Short: In the Advanced settings, Triggers -> Failure - Any lists "Developers" by default, but not "Recipient List." – Danny. Apr 04 '17 at 16:02
  • wow indeed. Now it works! Thanks! P.S. though I did not get the email it at least showed that it sent it – lapots Apr 04 '17 at 16:06