[ jenkins ] Email Notification using “Extended E-mail notification” plugins

Installation 

Manage Jenkins > Manage Plugins > Email Extension Plugin

Configure SMTP

Manage Jenkins > Configure System > Extended E-mail Notification

Option 1 : use TLS

  1. smtp.gmail.com
  2. port : 465
  3. unckeck SSL
  4. -Dmail.smtp.starttls.enable=”true” *** before -jar
    “%BASE%\jenkins.war” *** in `C:\Program Files (x86)\Jenkins\jenkins.xml`
-Dmail.smtp.starttls.enable="true" -jar "%BASE%\jenkins.war"
Option 2 : use SSL
1. smtp.gmail.com
2. port : 465
3. If your gmail enable 2 steps notifcation, use app password
Default content
$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:

{BUILD_LOG, maxLines=10000}

Check console output at $BUILD_URL to view the results.

The params is listed in ? in “Content Token Reference” section

Configure a project to send email at every build
  1. Click “Add post-build action”
  2. Click “Editable Email Notification”
  3. Click “Advanced Settings…”
  4. Click “Add Trigger”
  5. Click “Always”
  6. Save

Configuration Example 

jenkins_editable_email_notification

NOTE : In Advance setting, the default Always will notify both `Recipient List` and `Developer`, the  Failure - Any will notify `Developer` which is the person who commit to Git.

 

ref : https://www.lifewire.com/what-are-the-gmail-smtp-settings-1170854,

http://www.scmgalaxy.com/tutorials/how-to-attach-the-jenkins-build-log-as-part-of-the-email-body/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s