1 Answer

Sep 8, 2019
Jenkins - Notification

Emails have been an important aspect in every organization due to its ease of use, and availability.

Several plugins are available in the market that allows you to configure every aspect of email notifications, one of which we are going to see now in Jenkins.

Jenkins email notification is a Java-based plugin tool to automate notification alert whenever an email is received. It will be useful for the CI (Continuous Integration) code.

Step 1: Go to the Manage Jenkins -> Manage Plugins.

Then on the Plugin Manager page, go to the Available tab and type email in the filter field and then install "Email Extension Plugin" and "Email Extension template Plugin".

Jenkins Notification

Jenkins Notification

Step 2: To configure an SMTP server, go to Manage Jenkins -> Configure System.

Jenkins Notification

Then go to configure System.

Jenkins Notification

Step 3: Go to the E-mail Notification section and enter the required SMTP server and click on the Advanced button.

Jenkins Notification

Click on the Use SMTP Authentication checkbox and enter the:

User name: [email protected]

Password: *******

Use SSL: Checked

SMTP Port: 465

Check mark on the Test configuration by sending test e-mail and enter the email id on the Test e-mail receipt section. And then click on Test configuration button to check whether the email id is valid or not.

Jenkins Notification

Step 4: Click on the Apply and then Save button.

Step 5: Go to the Jenkins dashboard page and click on the previously created job like HelloWorld and then click the "configure" option.

Jenkins Notification

Step 6: Scroll down and click on Add post-build action button and select E-mail Notification section.

Jenkins Notification

Step 7: Enter the receipt email id in the E-mail Notification section and select the check box 'send e-mail for every unstable build' option.

Jenkins Notification

Step 8: Click on apply and then save button.

Step 9: Go to Home page and click on the job (HelloWorld) then click on Build now.

Verify in your email id after the job execution.
Click here to read more about Jenkins
Click here to read more about Insurance

Related questions

Sep 8, 2019 in Jenkins
Sep 8, 2019 in Jenkins
Sep 8, 2019 in Jenkins