Permalink
Browse files

[FIXED JENKINS-13656] Use warnings history when restoring an instance of

WarningsResult.
  • Loading branch information...
uhafner committed May 7, 2012
1 parent 6a6769f commit 7db20dda08df20c7ba829a4c1b0f3d462e307140
Showing with 6 additions and 1 deletion.
  1. +1 −1 pom.xml
  2. +5 −0 src/main/java/hudson/plugins/warnings/WarningsResult.java
@@ -36,7 +36,7 @@
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-core</artifactId>
<version>1.40</version>
<version>1.41-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
@@ -53,6 +53,11 @@ public WarningsResult(final AbstractBuild<?, ?> build, final BuildHistory histor
}
}

@Override
protected BuildHistory createHistory(final AbstractBuild<?, ?> build) {
return new WarningsBuildHistory(build, group);
}

@Override
protected void configure(final XStream xstream) {
xstream.alias("warning", Warning.class);

0 comments on commit 7db20dd

Please sign in to comment.