Skip to content

Commit

Permalink
Fix JENKINS-13657
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed May 4, 2012
1 parent 64a215a commit 47e4c10
Showing 1 changed file with 11 additions and 5 deletions.
Expand Up @@ -36,6 +36,7 @@
import hudson.util.ChartUtil.NumberOnlyBuildLabel;
import hudson.util.DataSetBuilder;
import hudson.util.Graph;
import org.jenkinsci.plugins.cppcheck.config.CppcheckConfigSeverityEvaluation;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;

Expand Down Expand Up @@ -170,9 +171,11 @@ private Object readResolve() {
org.jenkinsci.plugins.cppcheck.CppcheckResult newResult = new org.jenkinsci.plugins.cppcheck.CppcheckResult(newReport, newSourceContainer, getOwner());

//Config
org.jenkinsci.plugins.cppcheck.config.CppcheckConfig newConfig = new org.jenkinsci.plugins.cppcheck.config.CppcheckConfig(
cppcheckConfig.getCppcheckReportPattern(),
cppcheckConfig.isIgnoreBlankFiles(),
org.jenkinsci.plugins.cppcheck.config.CppcheckConfig newConfig = new org.jenkinsci.plugins.cppcheck.config.CppcheckConfig();

newConfig.setPattern(cppcheckConfig.getCppcheckReportPattern());
newConfig.setIgnoreBlankFiles(cppcheckConfig.isIgnoreBlankFiles());
CppcheckConfigSeverityEvaluation configSeverityEvaluation = new CppcheckConfigSeverityEvaluation(
cppcheckConfig.getConfigSeverityEvaluation().getThreshold(),
cppcheckConfig.getConfigSeverityEvaluation().getNewThreshold(),
cppcheckConfig.getConfigSeverityEvaluation().getFailureThreshold(),
Expand All @@ -182,8 +185,9 @@ private Object readResolve() {
cppcheckConfig.getConfigSeverityEvaluation().isSeverityError(),
cppcheckConfig.getConfigSeverityEvaluation().isSeverityPossibleError(),
cppcheckConfig.getConfigSeverityEvaluation().isSeverityStyle(),
cppcheckConfig.getConfigSeverityEvaluation().isSeverityPossibleStyle(),
true,
cppcheckConfig.getConfigSeverityEvaluation().isSeverityPossibleStyle(), true);
newConfig.setConfigSeverityEvaluation(configSeverityEvaluation);
org.jenkinsci.plugins.cppcheck.config.CppcheckConfigGraph configGraph = new org.jenkinsci.plugins.cppcheck.config.CppcheckConfigGraph(
cppcheckConfig.getConfigGraph().getXSize(),
cppcheckConfig.getConfigGraph().getYSize(),
cppcheckConfig.getConfigGraph().isDiplayAllError(),
Expand All @@ -192,6 +196,8 @@ private Object readResolve() {
cppcheckConfig.getConfigGraph().isDisplaySeverityStyle(),
cppcheckConfig.getConfigGraph().isDisplaySeverityPossibleStyle(),
true);
newConfig.setConfigGraph(configGraph);


return new org.jenkinsci.plugins.cppcheck.CppcheckBuildAction(owner, newResult, newConfig);

Expand Down

0 comments on commit 47e4c10

Please sign in to comment.