Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[FIXED JENKINS-13656] Use warnings history when restoring an instance of
Browse files Browse the repository at this point in the history
WarningsResult.
  • Loading branch information
uhafner committed May 7, 2012
1 parent 6a6769f commit 7db20dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -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>
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/hudson/plugins/warnings/WarningsResult.java
Expand Up @@ -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);
Expand Down

0 comments on commit 7db20dd

Please sign in to comment.