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

unable to resolve class hudson.maven.reporters.SurefireAggregatedReport in groovy template

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None

      1. Edit a groovy template and add a reference to hudson.maven.reporters.SurefireAggregatedReport.

      2. Test the template using the testing instructions on the wiki at https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-TestingTemplates

      EXPECTING: email is sent.

      ACTUAL: Exception: javax.script.ScriptException: groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed: SimpleTemplateScript52.groovy: 121: unable to resolve class hudson.maven.reporters.SurefireAggregatedReport @ line 121, column 1. import hudson.maven.reporters.SurefireAggregatedReport ^ SimpleTemplateScript52.groovy: 128:

      This prevents someone from displaying the JUnit test results. Basically, I'm trying to copy and then modify ScriptContentBuildWrapper.getJUnitTestResult() as a starting point.

      If I try to access ScriptContentBuildWrapper, I get this error -

      Exception: javax.script.ScriptException: groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed: SimpleTemplateScript58.groovy: 136: unable to resolve class hudson.plugins.emailext.plugins.content.ScriptContentBuildWrapper @ line 136, column 1. import hudson.plugins.emailext.plugins.content.ScriptContentBuildWrapper ^ 1 error

            slide_o_mix Alex Earl
            joshunger Josh Unger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: