DevOps Classroom Series – 08/Dec/2021

Notifications and Reporting

  • Informing the team of status of jenkins jobs is an essential part.
  • For this lab setup we would be using mailtrap which is a fake smtp server Refer Here.
  • Create an account with your existing google account or Github account
  • Setting up mailtrap Preview Preview Preview
  • These credentials will be configured in the jenkins
  • Now Navigate to jenkins -> Manage Jenkins -> Configure System -> Email Notification Preview Preview Preview
  • Free style project Preview Preview
  • Scripted Pipeline:
  • Declarative Pipeline:
  • Extended email notifications:
    • In addition to basic email functionility, there is also an Extended Email (email-ext) plugin that adds numerous additional options for sending emails throught jenknins
    • Mail configuration will be same as above, but also adds functionality in three areas
      • Content:
        • It’s possible to dynamically modify the contents of email notifications subject and body
      • Recipients:
        • You can define which user roles should recieve email notification
      • Triggers:
        • You can specify what conditions should initiate sending an email notification (This doesn’t apply to pipelines)
    • Global Configuration:
      • Manage Jenkins -> Configure System -> Extended email notification
      • For option setting refer class room video
      • Extended email recipient categories
        • Culprits
        • Developers
        • Requester
    • To send an extended email Refer Here for the pipeline step
    • Refer Here for the changes Preview
    • Now lets apply the mail and email ext in meaningful manner
    • Email Ext using in declarative pipeline Refer Here
    • Added email notification at multiple places Refer Here

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube