Skip to content

Commit

Permalink
RedeployBatchTaskPublisher: fix deployment to Maven repo (JENKINS-11766)
Browse files Browse the repository at this point in the history
Requires a corresponding fix in the maven plugin.

Signed-off-by: Michael Smith <msmith@cbnco.com>
  • Loading branch information
Michael Smith committed Nov 16, 2011
1 parent 418a459 commit 3f78089
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>1.399</version>
<version>1.441-SNAPSHOT</version>
</parent>

<artifactId>promoted-builds</artifactId>
Expand Down
@@ -1,6 +1,7 @@
package hudson.plugins.promoted_builds.tasks;

import hudson.Extension;
import hudson.maven.MavenModuleSetBuild;
import hudson.maven.RedeployPublisher;
import hudson.maven.reporters.MavenAbstractArtifactRecord;
import hudson.model.AbstractBuild;
Expand All @@ -23,8 +24,8 @@ public RedeployBatchTaskPublisher(String id, String url, boolean uniqueVersion)
}

@Override
protected MavenAbstractArtifactRecord getAction(AbstractBuild<?,?> build) {
return ((Promotion)(AbstractBuild)build).getTarget().getAction(MavenAbstractArtifactRecord.class);
protected MavenModuleSetBuild getMavenBuild(AbstractBuild<?,?> build) {
return super.getMavenBuild(((Promotion) build).getTarget());
}

@Extension
Expand Down

0 comments on commit 3f78089

Please sign in to comment.