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 Link icon

    • RestartCommand Link icon

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

    • getContainerIds Link icon

      public String getContainerIds()
    • getTimeout Link icon

      public int getTimeout()
    • execute Link icon

      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