DEV Community

technonotes-hacker
technonotes-hacker

Posted on

Jenkins - Day - 2

Content

  1. Password Creation.
  2. How to send email notification ?
  3. Log location of Jenkins .

Creation of Password from GMAIL:

  • Goto to the respective e-mail and set the 2-factor authentication.
  • Then enable APP password.

Image description

Image description

Image description

Image description

Image description

Image description

wxu ul00s xddd xvlo While you are entering this password in Jenkins make sure you need to remove the space.

Image description

Email Extension Template Plugin is the plugin which is required to send message.

Image description

Configure the EMAIL to the Jenkins :

Image description

Image description

Now set the gmail SMTP server to get the notification :

Image description

Image description

Enable the test mail and check whether you are getting the mail,

Image description

Now test the configuration,

Image description

Image description

Image description

Image description

Now go to "Extended E-mail Notification",

Image description

Always ---> it will give all the logs to your mail ID.

Image description

Image description

Image description

Image description

Image description

Image description

Click ADD

Image description

Save all the Changes and Now create a Project and test the email notifications.

Image description

Image description

Image description

Image description

Image description

Image description

Here you can give many EMAIL ID's like all the members of the team. Note : This is ONLY FOR THIS PROJECT alone.

Image description

Now CLICK build NOW

Image description

Image description

Image description

If you notice keenly , from mail ID is like " address not configured yet " , that is configured here . Requesting to change accordingly.

Image description

Image description

Image description

Where LOGS are stored ?

/var/lib/jenkins/jobs/
Enter fullscreen mode Exit fullscreen mode

Image description

/var/lib/jenkins/jobs/TestEmailNotification/builds
/var/lib/jenkins/jobs/TestEmailNotification/builds/1/log
Enter fullscreen mode Exit fullscreen mode

Image description

List of Error's :

  1. Email not sent :

Image description

Image description

Image description

Top comments (0)