DEV Community

Cover image for Configure and setup Email extended notification on Jenkins and create a project to verify the notification
Kannan
Kannan

Posted on

Configure and setup Email extended notification on Jenkins and create a project to verify the notification

*On respective Email configuration *

  • set 2-factor authentication and enable & add the app password under security tab. -Create the app password for Jenkins and need to add the password on jenkins.

*On Jenkins Dashboard *

  • We have completed with the installation and basic setup of Jenkins app.

  • Jenkins dashboard > Manage Jenkins > plugins >Email Extension Template Plugin.(add these plugin for E-mail Notification)

  • Jenkins dashboard > Manage Jenkins > system >E-mail Notification.(In the password tab enter the app password which we created on gmail "without space")

Image description

  • enable the "Test configuration by sending test e-mail"
    enter the email for validation purpose and verify the email inbox for Notification.

  • On Extended Email Notification add the credientials and enable "Use SSL".

Image description

  • On Default trigger tab select "Always", "Success", "Failure if any".

Image description

  • On Jenkins dashboard > Add New Item > select "Freestyle project" > provide project name on "CAMEL Format"> ok.

Image description

  • On "Build Steps" select "Execute shell" provide the commands need to run.

Image description

  • On "Post Build Action" select "Editable E mail Notification".

  • Provide the "email ID" to whom you want to send the project Build Log Notification Apply and save.

  • Once saved Click on "Build Now" to run the project and view the console output and verify the email notification.

Image description

  • If the notification Email is getting from "address not yet found" you can modify the system admin e-mail address.

Image description

  • All the Jenkins Project logs are stored on the below path
/var/lib/jenkins/jobs/
Enter fullscreen mode Exit fullscreen mode

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay