Package 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
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal StringRepository ID.final Stringfinal booleanfinal StringRepository URL to deploy artifacts to.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionRedeployPublisher(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<MavenAbstractArtifactRecord>getActions(AbstractBuild<?, ?> build, BuildListener listener) protected MavenModuleSetBuildgetMavenBuild(AbstractBuild<?, ?> build) Obtains theMavenModuleSetBuildthat we'll work on, or null.protected Resultbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Field Details
-
id
Repository ID. This is matched up with~/.m2/settings.xmlfor authentication related information. -
url
Repository URL to deploy artifacts to. -
uniqueVersion
public final boolean uniqueVersion -
evenIfUnstable
public final boolean evenIfUnstable -
releaseEnvVar
-
-
Constructor Details
-
RedeployPublisher
Deprecated.For backward compatibility -
RedeployPublisher
@Deprecated public RedeployPublisher(String id, String url, boolean uniqueVersion, boolean evenIfUnstable) Deprecated.- Since:
- 1.347
-
RedeployPublisher
-
-
Method Details
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
getMavenBuild
Obtains theMavenModuleSetBuildthat 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
-
getTreshold
-