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

Cucumber plugin not compatible with JEP-200

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The plugin doesn't work since Jenkins 2.102 : https://jenkins.io/blog/2018/01/13/jep-200/

      All the classes from gherkin are rejected

       
      [Cucumber Tests] Parsing results.
      [Cucumber Tests] parsing cucumber-stored-proc.json
      [Cucumber Tests] parsing cucumber.json
      ERROR: Build step failed with exception
      java.lang.SecurityException: Rejected: gherkin.formatter.model.Feature
      at hudson.remoting.ClassFilter.check(ClassFilter.java:75)
      at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:129)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1863)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1746)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2037)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
      at java.util.ArrayList.readObject(ArrayList.java:797)
      at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2173)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
      at hudson.remoting.UserRequest.deserialize(UserRequest.java:277)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
      at hudson.remoting.Channel.call(Channel.java:909)
      at hudson.FilePath.act(FilePath.java:998)
      at hudson.FilePath.act(FilePath.java:987)
      at org.jenkinsci.plugins.cucumber.jsontestsupport.DefaultTestResultParserImpl.parseResult(DefaultTestResultParserImpl.java:101)
      at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberJSONParser.parseResult(CucumberJSONParser.java:101)
      at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.publishReport(CucumberTestResultArchiver.java:128)
      at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:107)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1073)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1752)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)

        Attachments

          Issue Links

            Activity

            Hide
            teilo James Nord added a comment -

            Benjamin Ruhlmann would you be prepared to test with this snapshot

            Show
            teilo James Nord added a comment - Benjamin Ruhlmann would you be prepared to test with this snapshot
            Hide
            benjamin_ruhlmann Benjamin Ruhlmann added a comment -

            I installed the snapshot and it works perfectly.

             

            Thanks a lot

            Show
            benjamin_ruhlmann Benjamin Ruhlmann added a comment - I installed the snapshot and it works perfectly.   Thanks a lot
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: James Nord
            Path:
            src/main/resources/META-INF/hudson.remoting.ClassFilter
            http://jenkins-ci.org/commit/cucumber-testresult-plugin/328ac25e7b6e44414842f1ebd9000fc657db66c6
            Log:
            Merge pull request #13 from jglick/JENKINS-49101-redux

            Also add gherkin.formatter.Argument

            Compare: https://github.com/jenkinsci/cucumber-testresult-plugin/compare/f7f76f2f406b...328ac25e7b6e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: src/main/resources/META-INF/hudson.remoting.ClassFilter http://jenkins-ci.org/commit/cucumber-testresult-plugin/328ac25e7b6e44414842f1ebd9000fc657db66c6 Log: Merge pull request #13 from jglick/ JENKINS-49101 -redux Also add gherkin.formatter.Argument Compare: https://github.com/jenkinsci/cucumber-testresult-plugin/compare/f7f76f2f406b...328ac25e7b6e
            Hide
            jglick Jesse Glick added a comment -

            pending release

            Show
            jglick Jesse Glick added a comment - pending release
            Hide
            teilo James Nord added a comment -

            released as 0.10.1

            Show
            teilo James Nord added a comment - released as 0.10.1

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                benjamin_ruhlmann Benjamin Ruhlmann
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: