Skip to content
Permalink
Browse files

[JENKINS-11814] [JENKINS-20487] Cleaning up dead code now that MavenA…

…rtifactArchiver does not call recordFingerprints.
  • Loading branch information...
jglick committed May 21, 2014
1 parent bb3eb1f commit 2320cc985b27abab948fff971be5813ad2bca5f8
@@ -29,9 +29,6 @@
import hudson.maven.MavenBuildProxy;
import hudson.model.Api;
import hudson.model.BuildListener;
import hudson.model.FingerprintMap;
import hudson.model.Run;
import hudson.util.LRUStringConverter;
import java.io.Closeable;
import java.io.File;
import java.io.FileNotFoundException;
@@ -43,7 +40,6 @@
import java.util.logging.Logger;
import javax.annotation.Nonnull;
import javax.servlet.ServletException;
import jenkins.model.Jenkins;
import jenkins.model.StandardArtifactManager;
import jenkins.util.VirtualFile;
import org.apache.maven.artifact.Artifact;
@@ -337,14 +333,6 @@ public void archive(MavenBuildProxy build, File file, BuildListener listener) th
}
}

/**
* Called from within the master to record fingerprint.
*/
public void recordFingerprint(MavenBuild build) throws IOException {
FingerprintMap map = Jenkins.getInstance().getFingerprintMap();
map.getOrCreate(build,fileName,md5sum);
}

public Api getApi() {
return new Api(this);
}
@@ -212,11 +212,4 @@ public void deploy(MavenEmbedder embedder, ArtifactRepository deploymentReposito
}
}

public void recordFingerprints() throws IOException {
// record fingerprints
if(mainArtifact!=null)
mainArtifact.recordFingerprint(parent);
for (MavenArtifact a : attachedArtifacts)
a.recordFingerprint(parent);
}
}

0 comments on commit 2320cc9

Please sign in to comment.
You can’t perform that action at this time.