Package hudson.plugins.deploy
Class ContainerAdapter
java.lang.Object
hudson.plugins.deploy.ContainerAdapter
- All Implemented Interfaces:
ExtensionPoint,Describable<ContainerAdapter>,Serializable
- Direct Known Subclasses:
CargoContainerAdapter
public abstract class ContainerAdapter
extends Object
implements Describable<ContainerAdapter>, ExtensionPoint, Serializable
Encapsulates container-specific deployment operation.
Persistence
Instances of these objects are persisted in projects' configuration XML via XStream.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()booleanredeploy(FilePath war, String aContextPath, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Deprecated.voidredeployFile(FilePath war, String aContextPath, Run<?, ?> build, Launcher launcher, TaskListener listener) Perform redeployment.
-
Constructor Details
-
ContainerAdapter
public ContainerAdapter()
-
-
Method Details
-
redeploy
@Deprecated public boolean redeploy(FilePath war, String aContextPath, AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws IOException, InterruptedExceptionDeprecated.- Throws:
IOExceptionInterruptedException
-
redeployFile
public void redeployFile(FilePath war, String aContextPath, Run<?, ?> build, Launcher launcher, TaskListener listener) throws IOException, InterruptedExceptionPerform redeployment. If failed, return false. Implementations should override me and makeredeploy(FilePath, String, AbstractBuild, Launcher, BuildListener)delegate to that implementation to be usable within Pipeline projects- Parameters:
war- the path of the war/ear file to deployaContextPath- the context path for the war to be deployedbuild- the build that is being deployedlauncher- the launcher of the buildlistener- the BuildListener of the build to deploy- Throws:
IOException- if there is an error locating the war fileInterruptedException- if there is an error deploying to the server
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<ContainerAdapter>
-
all
-