Class StartCommand
- java.lang.Object
-
- org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
-
- org.jenkinsci.plugins.dockerbuildstep.cmd.StartCommand
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<DockerCommand>
public class StartCommand extends DockerCommand
This command starts one or more Docker containers. It also exports some build environment variables like IP or started containers.- Author:
- vjuranek
- See Also:
- Start a container
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StartCommand.StartCommandDescriptor
-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
DockerCommand.DockerCommandDescriptor
-
Nested 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 Constructor Description StartCommand(String containerIds, String waitPorts, String containerIdsLogging)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Launcher launcher, AbstractBuild build, ConsoleLogger console)
String
getContainerIds()
String
getContainerIdsLogging()
String
getWaitPorts()
-
Methods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
all, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
-
-
-
-
Method Detail
-
getContainerIds
public String getContainerIds()
-
getWaitPorts
public String getWaitPorts()
-
getContainerIdsLogging
public String getContainerIdsLogging()
-
execute
public void execute(Launcher launcher, AbstractBuild build, ConsoleLogger console) throws com.github.dockerjava.api.exception.DockerException
- Specified by:
execute
in classDockerCommand
- Throws:
com.github.dockerjava.api.exception.DockerException
-
-