提交 3b2ffa3e 编写于 作者: K kohsuke

[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
上级 d32fcc4e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册