*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")
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".
- On Default trigger tab select "Always", "Success", "Failure if any".
- On Jenkins dashboard > Add New Item > select "Freestyle project" > provide project name on "CAMEL Format"> ok.
- On "Build Steps" select "Execute shell" provide the commands need to run.
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.
- If the notification Email is getting from "address not yet found" you can modify the system admin e-mail address.
- All the Jenkins Project logs are stored on the below path
/var/lib/jenkins/jobs/
Top comments (0)