Skip to content

Commit

Permalink
Fix JENKINS-12364
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Apr 21, 2012
1 parent e5d5192 commit ba87566
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Expand Up @@ -27,6 +27,7 @@
import com.thalesgroup.hudson.plugins.cppcheck.config.CppcheckConfigGraph;
import com.thalesgroup.hudson.plugins.cppcheck.graph.CppcheckGraph;
import com.thalesgroup.hudson.plugins.cppcheck.model.CppcheckFile;
import com.thalesgroup.hudson.plugins.cppcheck.model.CppcheckSourceContainer;
import com.thalesgroup.hudson.plugins.cppcheck.util.AbstractCppcheckBuildAction;
import com.thalesgroup.hudson.plugins.cppcheck.util.CppcheckBuildHealthEvaluator;
import hudson.model.AbstractBuild;
Expand Down Expand Up @@ -164,7 +165,9 @@ private Object readResolve() {
}

//Result
org.jenkinsci.plugins.cppcheck.CppcheckResult newResult = new org.jenkinsci.plugins.cppcheck.CppcheckResult(newReport, result.getCppcheckSourceContainer(), getOwner());
CppcheckSourceContainer sourceContainer = result.getCppcheckSourceContainer();
org.jenkinsci.plugins.cppcheck.CppcheckSourceContainer newSourceContainer = new org.jenkinsci.plugins.cppcheck.CppcheckSourceContainer(sourceContainer.getInternalMap());
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(
Expand Down
Expand Up @@ -12,7 +12,6 @@
import hudson.tasks.BuildStepMonitor;
import hudson.tasks.Publisher;
import net.sf.json.JSONObject;
import org.jenkinsci.CppcheckSourceContainer;
import org.jenkinsci.plugins.cppcheck.config.CppcheckConfig;
import org.jenkinsci.plugins.cppcheck.util.CppcheckBuildResultEvaluator;
import org.kohsuke.stapler.StaplerRequest;
Expand Down
Expand Up @@ -6,7 +6,6 @@
import hudson.model.Api;
import hudson.model.Item;
import org.apache.commons.lang.StringUtils;
import org.jenkinsci.CppcheckSourceContainer;
import org.jenkinsci.plugins.cppcheck.config.CppcheckConfig;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
Expand Down
@@ -1,4 +1,4 @@
package org.jenkinsci;
package org.jenkinsci.plugins.cppcheck;

import com.thalesgroup.hudson.plugins.cppcheck.model.CppcheckFile;
import com.thalesgroup.hudson.plugins.cppcheck.model.CppcheckWorkspaceFile;
Expand All @@ -18,6 +18,10 @@ public class CppcheckSourceContainer {

private Map<Integer, CppcheckWorkspaceFile> internalMap = new HashMap<Integer, CppcheckWorkspaceFile>();

public CppcheckSourceContainer(Map<Integer, CppcheckWorkspaceFile> internalMap) {
this.internalMap = internalMap;
}

public CppcheckSourceContainer(BuildListener listener,
FilePath workspace,
FilePath scmRootDir,
Expand Down

0 comments on commit ba87566

Please sign in to comment.