Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are Jenkins "extended emails" not including extended information?

We installed email-ext 2.24.1 into Jenkins 1.447. We set "Extended Email Notification" "Default Content" to

$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:

Check console output at $BUILD_URL to view the results.

Failed tests (regressions compared to previous builds): ${FAILED_TESTS, onlyRegressions=true}

Changes: ${CHANGES, showPaths=true, format="%a: %r %p \n--\"%m\", pathFormat="\n\t- %p"}

We went to a project, and selected "Editable Email Notification" and left the default settings, where "Default Subject" says $DEFAULT_SUBJECT and "Default Content" says $DEFAULT_CONTENT.

In emails that come out, it's as if email-ext doesn't exist. I just see build information, nothing about the tests that failed or the changes since last success.

Why do the emails not show Failed tests and Changes? And how do I debug this? Are there logs somewhere showing what is getting run?

Edit: I added "HALLOO" to the project "Default Content". Didn't show up.

Screenshot of the email portion of the global configuration: global config

Screenshot of the email portion of the job configuration page: job config

like image 741
dfrankow Avatar asked Oct 05 '12 14:10

dfrankow


People also ask

How do I add an email EXT in Jenkins?

Go to the Jenkins system-wide configuration page (Manage Jenkins, Configure System). The configuration for this plugin can be found in the section entitled Extended E-mail Notification. This configuration should match the settings for your SMTP mail server.

In which other areas does the extended email plugin provide customization?

It provides customization of 3 areas. Triggers - Select the conditions that should cause an email notification to be sent. Content - Specify the content of each triggered email's subject and body. Recipients - Specify who should receive an email when it is triggered.


2 Answers

In the Post build actions section, delete the E-mail notification altogether. This will ensure your instance is using only Editable email notification

This is possible in my version (1.477), not sure when this function of adding/deleting post-build actions released.

like image 80
Pulak Agrawal Avatar answered Nov 08 '22 12:11

Pulak Agrawal


You need to un-check the box for default email notifications and then add your recipients list to the extended email configuration. Using the $DEFAULT_RECIPIENTS will only work if you have configured defaults.

like image 45
CIGuy Avatar answered Nov 08 '22 12:11

CIGuy