Sending e-mail notifications based on build status

 

"Failure is simply the opportunity to begin again, this time more intelligently."

 
 -- Henry Ford

However, it is extremely vital to be aware of failure or at least to know when things fail so we can fix them and get rid of issues.

Notifications are always helpful in case of failures. Consider a scenario where a build failure or test case failure has to be notified to a specific set of stakeholders. In such a situation, it is desirable to have e-mail notifications.

We will use G-mail configuration for setting up e-mail notifications. Follow these steps:

  1. Go to https://www.google.com/settings/u/1/security/lesssecureapps and click on Turn on Access for less secure apps, as shown here, to send e-mail ...

Get DevOps for Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.