Class RestartCommand

java.lang.Object
org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
org.jenkinsci.plugins.dockerbuildstep.cmd.RestartCommand
All Implemented Interfaces:
ExtensionPoint, Describable<DockerCommand>

public class RestartCommand extends DockerCommand
This command restarts specified Docker container(s).
Author:
vjuranek
See Also:
  • Constructor Details

    • RestartCommand

      @DataBoundConstructor public RestartCommand(String containerIds, int timeout)
  • Method Details

    • getContainerIds

      public String getContainerIds()
    • getTimeout

      public int getTimeout()
    • 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