Skip to content
Permalink
Browse files

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
Peter Jönsson committed Jan 3, 2014
1 parent 1c3b767 commit 719b511a87bf0ffa31be28c0f9e4d05b9e185e0c
@@ -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;

@@ -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;

0 comments on commit 719b511

Please sign in to comment.
You can’t perform that action at this time.