Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20355

email-ext emails no longer include JUnit results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: email-ext-plugin
    • Labels:
      None
    • Environment:
      Debian Linux squeeze i386; Jenkins LTS 1.509.4
    • Similar Issues:

      Description

      After upgrading from 1.503 to LTS 1.509.4 and updating plugins to the latest released versions that work with LTS, I stopped getting JUnit test results in my build e-mails. I use a custom jelly script based on the html.jelly template (the JUnit section of my template is identical to html.jelly).

      In my jenkins.log I see:
      WARNING: Caught exception evaluating: it.JUnitTestResult. Reason: java.lang.reflect.InvocationTargetException
      ...
      Caused by: java.lang.NoClassDefFoundError: hudson/maven/reporters/SurefireAggregatedReport
      at hudson.plugins.emailext.plugins.content.ScriptContentBuildWrapper.getJUnitTestResult(ScriptContentBuildWrapper.java:78)
      ...

      This seems like it might be related to https://issues.jenkins-ci.org/browse/JENKINS-16990, but I'm not sure how the fix for that issue applies in my situation.

        Attachments

          Issue Links

            Activity

            Hide
            s0undt3ch Pedro Algarvio added a comment -

            I'm not getting the traceback, so I should probably open a new issue..

            I have Maven Integration plugin 2.8 installed and enabled..

            Also, this is not a maven project, it's a freestyle project(if that makes a difference)

            Show
            s0undt3ch Pedro Algarvio added a comment - I'm not getting the traceback, so I should probably open a new issue.. I have Maven Integration plugin 2.8 installed and enabled.. Also, this is not a maven project, it's a freestyle project(if that makes a difference)
            Hide
            s0undt3ch Pedro Algarvio added a comment -

            I'm also not getting the warnings reports in the email either...

            Show
            s0undt3ch Pedro Algarvio added a comment - I'm also not getting the warnings reports in the email either...
            Hide
            s0undt3ch Pedro Algarvio added a comment -
            Show
            s0undt3ch Pedro Algarvio added a comment - My email template https://gist.github.com/s0undt3ch/8d220faaa3b0614ee3b0
            Hide
            s0undt3ch Pedro Algarvio added a comment -

            Actually, after your comment I did enable the maven integration plugin, previously disabled. Tried a test run with no success.
            Today I tried again, and it's working again. Sorry for the confusion.

            I'm still unable to get the violations report though... (if only I know jenkins java classes better and jelly for that matter)...

            Show
            s0undt3ch Pedro Algarvio added a comment - Actually, after your comment I did enable the maven integration plugin, previously disabled. Tried a test run with no success. Today I tried again, and it's working again. Sorry for the confusion. I'm still unable to get the violations report though... (if only I know jenkins java classes better and jelly for that matter)...
            Hide
            slide_o_mix Alex Earl added a comment -

            Yes, please open a new issue and provide more information.

            Show
            slide_o_mix Alex Earl added a comment - Yes, please open a new issue and provide more information.

              People

              Assignee:
              slide_o_mix Alex Earl
              Reporter:
              randycoulman Randy Coulman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: