Skip to content

Commit

Permalink
[FIXED JENKINS-10030] builds failing while JUnit result archiving if …
Browse files Browse the repository at this point in the history
…build is running in different VM than Jenkins is
  • Loading branch information
kutzi committed Aug 13, 2011
1 parent 7c1144b commit 307fca2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/java/hudson/util/io/ParserConfigurator.java
Expand Up @@ -55,6 +55,8 @@
* @since 1.416
*/
public abstract class ParserConfigurator implements ExtensionPoint, Serializable {
private static final long serialVersionUID = -2523542286453177108L;

/**
* Configures the given {@link SAXReader}
*
Expand All @@ -78,6 +80,9 @@ public static void applyConfiguration(SAXReader reader, Object context) throws I
Channel ch = Channel.current();
if (ch!=null)
all = ch.call(new Callable<Collection<ParserConfigurator>, IOException>() {

private static final long serialVersionUID = -2178106894481500733L;

public Collection<ParserConfigurator> call() throws IOException {
return new ArrayList<ParserConfigurator>(all());
}
Expand Down
Expand Up @@ -140,6 +140,8 @@ public boolean postExecute(MavenBuildProxy build, MavenProject pom, MojoInfo moj
result.parse(System.currentTimeMillis() - build.getMilliSecsSinceBuildStart(), reportsDir, reportFiles);

int failCount = build.execute(new BuildCallable<Integer, IOException>() {
private static final long serialVersionUID = -1023888330720922136L;

public Integer call(MavenBuild build) throws IOException, InterruptedException {
SurefireReport sr = build.getAction(SurefireReport.class);
if(sr==null)
Expand Down

0 comments on commit 307fca2

Please sign in to comment.