Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Because of the anonymous callable in Cucumber Test Result Archiver we need to make the class serializable, otherwise you will get the exception:
ERROR: Failed to archive cucumber reports java.io.IOException: Unable to serialize org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver$1@ at hudson.remoting.UserRequest.serialize(UserRequest.java:169) at hudson.remoting.UserRequest.<init>(UserRequest.java:63) at hudson.remoting.Channel.call(Channel.java:750) at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:115) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1783) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) at hudson.remoting.UserRequest._serialize(UserRequest.java:158) at hudson.remoting.UserRequest.serialize(UserRequest.java:167) ... 12 more
Attachments
Issue Links
- relates to
-
JENKINS-49101 Cucumber plugin not compatible with JEP-200
-
- Resolved
-
Code changed in jenkins
User: James Nord
Path:
pom.xml
src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT.java
src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT/passWIthEmbeddedItem.json
http://jenkins-ci.org/commit/cucumber-testresult-plugin/35fab782f1746218527d0fa5d55e8d39e62e0041
Log:
JENKINS-28588Add unit test to make sure plugin works on a slave.Add a unit test that runs the plugin on a slave to ensure no serialization
issues occur.