Class RemoveImageCommand

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

public class RemoveImageCommand extends DockerCommand
This command removes specified Docker image.
Author:
draoullig
See Also:
  • Constructor Details

    • RemoveImageCommand

      @DataBoundConstructor public RemoveImageCommand(String imageName, String imageId, boolean ignoreIfNotFound)
  • Method Details

    • getImageName

      public String getImageName()
    • getImageId

      public String getImageId()
    • getIgnoreIfNotFound

      public boolean getIgnoreIfNotFound()
    • 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