hudson.maven
Class RedeployPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.maven.RedeployPublisher
- All Implemented Interfaces:
- ExtensionPoint, Describable<Publisher>, BuildStep
public class RedeployPublisher
- extends Recorder
Publisher for MavenModuleSetBuild to deploy artifacts
after a build is fully succeeded.
Note that the - historical given - name of this class is quite misleading as this publisher usually does no REdeployment
of artifacts. If you're looking for the redeploy functionality in the Jenkins UI: that is implemented in
MavenAbstractArtifactRecord.doRedeploy(String, String, boolean)!
- Since:
- 1.191
- Author:
- Kohsuke Kawaguchi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
public final String id
- Repository ID. This is matched up with ~/.m2/settings.xml for authentication related information.
url
public final String url
- Repository URL to deploy artifacts to.
uniqueVersion
public final boolean uniqueVersion
evenIfUnstable
public final boolean evenIfUnstable
releaseEnvVar
public final String releaseEnvVar
RedeployPublisher
@Deprecated
public RedeployPublisher(String id,
String url,
boolean uniqueVersion)
- Deprecated.
- For backward compatibility
RedeployPublisher
@Deprecated
public RedeployPublisher(String id,
String url,
boolean uniqueVersion,
boolean evenIfUnstable)
- Deprecated.
- Since:
- 1.347
RedeployPublisher
@DataBoundConstructor
public RedeployPublisher(String id,
String url,
boolean uniqueVersion,
boolean evenIfUnstable,
String releaseEnvVar)
perform
public boolean perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener)
throws InterruptedException,
IOException
- Specified by:
perform in interface BuildStep- Overrides:
perform in class BuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
getMavenBuild
protected MavenModuleSetBuild getMavenBuild(AbstractBuild<?,?> build)
- Obtains the
MavenModuleSetBuild that we'll work on, or null.
This allows promoted-builds plugin to reuse the code for delayed deployment.
getActions
protected List<MavenAbstractArtifactRecord> getActions(AbstractBuild<?,?> build,
BuildListener listener)
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
getTreshold
protected Result getTreshold()
Copyright © 2004-2013. All Rights Reserved.