Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why there are no sent mails after the Jenkins ext. mail step?

I have configured SMTP and the postpone extended email step. Jenkins is white listed, so I do not need to specify the credentials. Job finishes successful. But why it does not sends anything?

Second problem. I had some "successful" ext. email step runs with "no emails were triggered" result.

Full images: http://s16.postimg.org/5074itjub/image.jpg

http://s17.postimg.org/5dghc1br1/image.jpg

enter image description here

enter image description here

like image 310
Arthur Kharkivskiy Avatar asked May 06 '15 08:05

Arthur Kharkivskiy


People also ask

How to send and receive emails in Jenkins?

In order to send and receive emails we need to configure email servers in Jenkins. Basically in an organization they have their own email servers that is used to trigger. Emails, in our example we do not have our own server, so we are going to use Gmail SMTP server.

How do I set up extended email notifications in Jenkins?

Go to the Jenkins system-wide configuration page (Manage Jenkins, Configure System). The configuration for this plugin can be found in the section entitled Extended E-mail Notification. This configuration should match the settings for your SMTP mail server.

What is trigger in Jenkins email notification?

When the Jenkins email notification triggers, that is an event under which the even occurred and sent to the respective recipients. For Automated build job, there are many events such as success, failure, abort and so on. After clicking on triggers option is basically a selection of required event for which mail need to trigger.

How do I enable SMTP Authentication in Jenkins?

Go to the Jenkins home page and click the ‘Manage Jenkins’ menu option. Then, select the ‘Configure System’ option. Go to the E-mail notification section and enter the required SMTP server and user email-suffix details. Click the ‘Advanced’ button and then click the checkbox next to the ‘Use SMTP Authentication’ option.


1 Answers

Check what triggers a sending email.

I'm not sure if your second printscreen contains all configuration. But there I can see that only "Any failure" triggers sending email. So if job finished successfully no email were sent.

======== EDITED ========

See at following printscreen how triggers may look like: enter image description here

like image 145
Marcin Armatys Avatar answered Oct 15 '22 00:10

Marcin Armatys