Class StopByImageIdCommand

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

public class StopByImageIdCommand extends DockerCommand
This command stops all containers create from specified image ID.
Author:
vjuranek
  • Constructor Details

    • StopByImageIdCommand

      @DataBoundConstructor public StopByImageIdCommand(String imageId)
  • Method Details

    • getImageId

      public String getImageId()
    • 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