I want to send email notification when any job gets done. Please let me know how can we propagate.
Configuring Email Extended To send email, the plugin needs the smtp configured. Go to Manage Jenkins > Configure System > search for “Extended E-mail Notification”. Configure the smtp. Example: My configuration with gmail smtp.
Click the 'Advance Settings…' button in the 'Editable Email Notification' box. Click the 'Add Trigger' drop-down and select the 'Always' option and Click the 'Save' button. Go to Email-Notification Jenkins job and click on Build now. Check the Recipient's mail box.
Jenkins comes with an out of box facility to add an email notification for a build project. Step 1 − Configuring an SMTP server. Goto Manage Jenkins → Configure System. Go to the E-mail notification section and enter the required SMTP server and user email-suffix details.
You can configure Jenkins to send email when a job finishes either by using a plugin or not.
First you have to configure your mail server settings by clicking on Manage Jenkins > Configure System
and find the E-mail Notification
section near the bottom of the page. Optionally also configure System Admin e-mail address
in the Jenkins Location
section.
Then for each job got to its configuration and Add post-build action
, select E-mail Notification
and configure as needed.
The issue with default jenkins email mechanism is that it has very limited customization.
The alternate approach is to use the Email-Ext plugin, a powerful email notification mechanism. You can define some global triggers but you can also customize the settings for each job. Sending emails for success, failure or any other build status is supported.
Go to : manage jenkins --> manage plugins --> 'available' tab --> select 'email extension plugin' --> click on button 'install without restart'
manage jenkins --> configure system --> enter details in 'email notification'
Fill up the details as given below and save it:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With