public class RedeployPublisher
extends hudson.tasks.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)!
| Modifier and Type | Class and Description |
|---|---|
static class |
RedeployPublisher.DescriptorImpl |
static class |
RedeployPublisher.WrappedArtifactRepository |
hudson.tasks.Publisher.DescriptorExtensionListImpl| Modifier and Type | Field and Description |
|---|---|
boolean |
evenIfUnstable |
String |
id
Repository ID.
|
String |
releaseEnvVar |
boolean |
uniqueVersion |
String |
url
Repository URL to deploy artifacts to.
|
| Constructor and Description |
|---|
RedeployPublisher(String id,
String url,
boolean uniqueVersion)
Deprecated.
|
RedeployPublisher(String id,
String url,
boolean uniqueVersion,
boolean evenIfUnstable)
Deprecated.
|
RedeployPublisher(String id,
String url,
boolean uniqueVersion,
boolean evenIfUnstable,
String releaseEnvVar) |
| Modifier and Type | Method and Description |
|---|---|
protected List<MavenAbstractArtifactRecord> |
getActions(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener) |
protected MavenModuleSetBuild |
getMavenBuild(hudson.model.AbstractBuild<?,?> build)
Obtains the
MavenModuleSetBuild that we'll work on, or null. |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
protected hudson.model.Result |
getTreshold() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuildpublic final String id
public final String url
public final boolean uniqueVersion
public final boolean evenIfUnstable
public final String releaseEnvVar
@Deprecated public RedeployPublisher(String id, String url, boolean uniqueVersion)
@Deprecated public RedeployPublisher(String id, String url, boolean uniqueVersion, boolean evenIfUnstable)
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionprotected MavenModuleSetBuild getMavenBuild(hudson.model.AbstractBuild<?,?> build)
MavenModuleSetBuild that we'll work on, or null.
This allows promoted-builds plugin to reuse the code for delayed deployment.
protected List<MavenAbstractArtifactRecord> getActions(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
protected hudson.model.Result getTreshold()
Copyright © 2016–2017. All rights reserved.