# How to get a better build failure email

**URL:** https://community.jenkins.io/t/how-to-get-a-better-build-failure-email/3999
**Category:** Ask a question
**Created:** [September 28, 2022, 2:32pm UTC](https://community.jenkins.io/t/how-to-get-a-better-build-failure-email/3999 "2022-09-28T14:32:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Guttorm](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@Guttorm](https://community.jenkins.io/u/Guttorm)
#### Post date: [September 28, 2022, 2:32pm UTC](https://community.jenkins.io/t/how-to-get-a-better-build-failure-email/3999/1 "2022-09-28T14:32:32Z")

</div>

Jenkins newbie here,

The build failure emails we send shows only a “Console Output” section with the last 150 lines or so of the console output, which are filled with chunks like this:

> Analyzing: xxxx.xxxx(at)xxxx.xx
> 
> Looking for: xxxx.xxxx(at)xxxx.xx
> 
> starting at: 0  
> firstFoundIdx: 0  
> firstFoundIdx-substring: xxxx.xxxx(at)xxxx.xx
> 
> =\> found type: 0

So, I click on the link to show the full log, and then the start of the log is filled with:

> Seen branch in repository origin/bugfix/PTSMC-xxxx-xxx-xxx-xxx

Is there any way to get rid of both of these, so that I can more easily get to the maven part?

The mailing is done with this:

```auto
post {

    failure {
        emailext( subject: '${DEFAULT_SUBJECT}'
            , body: '${JELLY_SCRIPT,template="html"}'
            , to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
            , replyTo: '$DEFAULT_REPLYTO'
            , mimeType: 'text/html'
            )
    }

```

We’re using Jenkins 2.361.1

---

<div class="post-metadata">

### Author: ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)
#### Post date: [September 28, 2022, 2:37pm UTC](https://community.jenkins.io/t/how-to-get-a-better-build-failure-email/3999/2 "2022-09-28T14:37:52Z")

</div>

It looks like someone turned on debug logging for the Extended Email plugin. You can turn this off in the global configuration. That should clear up the email address stuff.

---

<div class="post-metadata">

### Author: ![Guttorm](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@Guttorm](https://community.jenkins.io/u/Guttorm)
#### Post date: [September 28, 2022, 4:05pm UTC](https://community.jenkins.io/t/how-to-get-a-better-build-failure-email/3999/3 "2022-09-28T16:05:03Z")

</div>

Doh! I looked for that but managed to miss it…  
Thanks 😀
