Class TagImageCommand

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

public class TagImageCommand extends DockerCommand
This command tags the specified Docker image.
Author:
draoullig
See Also:
  • Constructor Details

    • TagImageCommand

      @DataBoundConstructor public TagImageCommand(String image, String repository, String tag, boolean ignoreIfNotFound, boolean withForce)
  • Method Details

    • getImage

      public String getImage()
    • getRepository

      public String getRepository()
    • getTag

      public String getTag()
    • getIgnoreIfNotFound

      public boolean getIgnoreIfNotFound()
    • getWithForce

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