Thursday, July 13, 2017

Configuration of email (Gmail) in Jenkins

One of the major beauty of Jenkins is to notify its users with e-mails as soon as the execution completed. It reduces the efforts of tester for checking results reports.

Testers need not to wait or stay back in office to send out the execution results e-mails. Jenkins will send notification email as soon as the execution completed to the intended user. And Jenkins supports different emails like Gmail, Yahoo, Outlook and etc.

To configure the emails with Jenkins we need to know the SMTP server and port number of the each email organization. SMTP (Simple Mail Transfer Protocol) is an internet standard for email transmission.

Configuration of Gmail in Jenkins: Gmail smtp server: smtp.gmail.com and port: 465

Step 1: Launch Jenkins and click on Manage Jenkins in dashboard

Step 2: Click on Configure System and Scroll down to Email Notification section


Step 3: As shown in the below enter the configuration details in the respective fields


Step 4: Click Apply and Save. Gmail is configured in Jenkins is done ☺.

We can verify our configuration setting by sending a test mail. Check the checkbox "Test Configuration by sending test email" and enter the receipt email.

Now click on the "Test configuration" button, if the configuration is correct a test mail will be sent to the receipt as shown in the below, otherwise the configuration is wrong.


Similarly Configure Yahoo in Jenkins: Yahoo smtp server: smtp.mail.yahoo.com and port:465

Step 1: Launch Jenkins and click on Manage Jenkins in Dashboard
Step 2: Click on Configure System and Scroll down to Email Notification section
Step 3: As shown in the below enter the configuration details in the respective fields


For Outlook it depends on the outlook version and the settings has been done in your organization. if you need to configure it in your office you can check with your IT team for smtp server and port number.

This is how we configure email in Jenkins. Thanks for reading, hope this information is helped you.

#HappyLearning #HappyTesting

9 comments:

  1. Great tutorial. Thanks! More such tutorials awaited.

    ReplyDelete
  2. It works for G Suite accounts only. Not for normal gmail accounts.

    ReplyDelete
  3. A debt of gratitude is in order for each other instructive site. The spot else might just I get that sort of data written in such a perfect means? I have an endeavor that I'm quite recently working on, and I have been watchful for such data. Buy Aged Gmail Accounts

    ReplyDelete
  4. This was truly a fascinating point and I kinda concur with what you have specified here
    Buy gmail accounts

    ReplyDelete
  5. Pleasant blog.A good website with interesting content, that’s what I need.spared to my bookmarks.
    Buy gmail accounts

    ReplyDelete
  6. A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. 4 Month Aged/Old Gmail

    ReplyDelete
  7. Very informative article, Which you have shared here about the Dedicated Bulk Email Server. After reading your article I got very much information about the Dedicated Bulk Email Server and it is very useful for us. Thank you for sharing this article here.

    ReplyDelete
  8. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.
    Tangki Panel

    ReplyDelete

Java Program 6: How to reverse a String in Java?

In this post we will discuss different methods to reverse a String in java programming. Method 1: Step 1: Read the input string using ...