mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
[fixed] redeployment stopped working. In 1.214. (issue #1671)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9243 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
d32fcc4e61
commit
3b2ffa3ebf
1 file changed
+14
@@ -5,8 +5,10 @@ import hudson.maven.MavenModule;
|
||||
import hudson.maven.MavenReporter;
|
||||
import hudson.maven.MavenReporterDescriptor;
|
||||
import hudson.maven.MojoInfo;
|
||||
import hudson.maven.MavenBuild;
|
||||
import hudson.model.BuildListener;
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.apache.maven.artifact.installer.ArtifactInstallationException;
|
||||
import org.apache.maven.project.MavenProject;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -54,6 +56,18 @@ public class MavenArtifactArchiver extends MavenReporter {
|
||||
attachedArtifacts.add(ma);
|
||||
}
|
||||
}
|
||||
|
||||
// deleted too much
|
||||
build.executeAsync(new MavenBuildProxy.BuildCallable<Void,IOException>() {
|
||||
public Void call(MavenBuild build) throws IOException, InterruptedException {
|
||||
MavenArtifactRecord mar = new MavenArtifactRecord(build,pomArtifact,mainArtifact,attachedArtifacts);
|
||||
build.addAction(mar);
|
||||
|
||||
mar.recordFingerprints();
|
||||
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user