-
Bug
-
Resolution: Fixed
-
Major
-
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
- is related to
-
JENKINS-20355 email-ext emails no longer include JUnit results
-
- Resolved
-