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

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

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            joshunger Josh Unger created issue -
            joshunger Josh Unger made changes -
            Field Original Value New Value
            Description 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.
            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 made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            randycoulman Randy Coulman made changes -
            Link This issue is related to JENKINS-20355 [ JENKINS-20355 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 147820 ] JNJira + In-Review [ 192598 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: