Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins ext-email plugin fails to send email on build success

Tags:

I have Jenkins version 1.480.3 installed on my machine and Email-Extension Plugin 2.28.

I have configured my jobs on Jenkins and everything works fine except the final build success email.

I have configured four triggers for Email-Extension plugin:

  1. Failure
  2. Success
  3. Unstable
  4. Before Build

For all the triggers I have enabled "Attach Log" and all works fine except the "Success".

I get the following message on screen:

Email was triggered for: Success
Sending email for trigger: Success
Request made to compress build log
Sending email to: [email protected] [email protected]
Error sending to the following VALID addresses: [email protected] [email protected]
Notifying upstream projects of job completion
Capturing build context information.
Finished: SUCCESS

Please could someone help me since I really have no clue how to resolve this.

like image 889
user1891622 Avatar asked Apr 24 '13 11:04

user1891622


People also ask

Why Jenkins is not sending email?

Jenkins Email Notification Not Working-Solved-Jenkins Email Notification. If you get an error you have to change some permissions on your google gmail id account. Above You provided your gmail id and password. jenkins works like a app.

How do I use extended email notifications in Jenkins?

Step 1 - Installing Email Extension Plugin. Open Jenkins using the following URL: http://localhost:8080/ on any browser (in this tutorial port 8071 is used). Click on Manage Jenkins. Click on Manage Plugins. Select Email Extension and Email Extension Template Plugin and click Install Without Restart.


1 Answers

I had this problem too. In the end, it was because my attached build log was too large! The SMTP server refused to send out the e-mail causing the error message:

Error sending to the following VALID addresses: ... 

Disabling the option to attach the build log or fixing the output of my build to not dump so much text fixed the problem:

enter image description here

like image 74
Carl Karawani Avatar answered Sep 24 '22 15:09

Carl Karawani