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:
  • Constructor Details

    • StartCommand

      @DataBoundConstructor public StartCommand(String containerIds, String waitPorts, String containerIdsLogging)
  • Method Details

    • 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 class DockerCommand
      Throws:
      com.github.dockerjava.api.exception.DockerException