Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JENKINS-21220 - Make XUnitProcessor serializable
When processing xUnit files on remote SSH slaves the following error
was obserserved:

 The plugin hasn't been performed correctly: remote file operation failed: /home/jenkins/workspace/xunit at hudson.remoting.Channel@56f87a20:slave

When investigating it was found that a NotSerializableException was
thrown. Simply make the needed classes serializable.
  • Loading branch information
Peter Jönsson committed Jan 3, 2014
1 parent 1c3b767 commit 719b511
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
@@ -1,9 +1,13 @@
package org.jenkinsci.plugins.xunit;

import java.io.Serializable;

/**
* @author Gregory Boissinot
*/
public class ExtraConfiguration {
public class ExtraConfiguration implements Serializable {

private static final long serialVersionUID = 1L;

private final long testTimeMargin;

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/jenkinsci/plugins/xunit/XUnitProcessor.java
Expand Up @@ -23,12 +23,13 @@

import java.io.File;
import java.io.IOException;
import java.io.Serializable;

/**
* @author Gregory Boissinot
*/
public class XUnitProcessor {

public class XUnitProcessor implements Serializable {
private static final long serialVersionUID = 1L;
private TestType[] types;
private XUnitThreshold[] thresholds;
private int thresholdMode;
Expand Down

0 comments on commit 719b511

Please sign in to comment.