Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[FIXED JENKINS-13716] Fixed file name of default graph configuration.
  • Loading branch information
uhafner committed May 31, 2012
1 parent 17cb850 commit 57d20b53935438e699c4bd3e8872ccd55795bbca
Showing with 14 additions and 2 deletions.
  1. +1 −1 pom.xml
  2. +13 −1 src/main/java/hudson/plugins/warnings/WarningsProjectAction.java
@@ -36,7 +36,7 @@
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-core</artifactId>
<version>1.41</version>
<version>1.42-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
@@ -7,6 +7,7 @@
import hudson.plugins.analysis.core.AbstractProjectAction;
import hudson.plugins.analysis.graph.BuildResultGraph;
import hudson.plugins.analysis.graph.DefaultGraphConfigurationView;
import hudson.plugins.analysis.graph.UserGraphConfigurationView;
import hudson.plugins.analysis.graph.GraphConfigurationView;
import hudson.plugins.warnings.parser.ParserRegistry;

@@ -15,6 +16,7 @@
import javax.annotation.CheckForNull;

import org.apache.commons.lang.StringUtils;
import org.kohsuke.stapler.StaplerRequest;

/**
* Entry point to visualize the warnings trend graph in the project screen.
@@ -52,9 +54,19 @@ public WarningsProjectAction(final AbstractProject<?, ?> project, final String g
parser = group;
}

/** {@inheritDoc} */
@Override
protected GraphConfigurationView createUserConfiguration(final StaplerRequest request) {
return new UserGraphConfigurationView(
createConfiguration(getAvailableGraphs()), getProject(),
WarningsDescriptor.getProjectUrl(parser), WarningsDescriptor.getProjectUrl(null),
request.getCookies(), createBuildHistory());
}

@Override
protected GraphConfigurationView createDefaultConfiguration() {
return new DefaultGraphConfigurationView(createConfiguration(getAvailableGraphs()), getProject(),
return new DefaultGraphConfigurationView(
createConfiguration(getAvailableGraphs()), getProject(),
WarningsDescriptor.getProjectUrl(parser),
createBuildHistory(), WarningsDescriptor.getProjectUrl(null));
}

0 comments on commit 57d20b5

Please sign in to comment.