Class RemoveAllCommand
java.lang.Object
org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
org.jenkinsci.plugins.dockerbuildstep.cmd.RemoveAllCommand
- All Implemented Interfaces:
ExtensionPoint,Describable<DockerCommand>
This command removes all Docker containers. Before removing them, it kills all them in case some of them are running.
- Author:
- vjuranek
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
DockerCommand.DockerCommandDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
CREDENTIALS_MATCHER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(Launcher launcher, AbstractBuild build, ConsoleLogger console) booleanisForce()booleanMethods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
all, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
-
Constructor Details
-
RemoveAllCommand
@DataBoundConstructor public RemoveAllCommand(boolean removeVolumes, boolean force)
-
-
Method Details
-
isRemoveVolumes
public boolean isRemoveVolumes() -
isForce
public boolean isForce() -
execute
public void execute(Launcher launcher, AbstractBuild build, ConsoleLogger console) throws com.github.dockerjava.api.exception.DockerException - Specified by:
executein classDockerCommand- Throws:
com.github.dockerjava.api.exception.DockerException
-