Class CreateImageCommand

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

public class CreateImageCommand extends DockerCommand
This command creates a new image from specified Dockerfile.
Author:
marcus
See Also:
  • Constructor Details

    • CreateImageCommand

      @DataBoundConstructor public CreateImageCommand(String dockerFolder, String imageTag, String dockerFile, boolean pull, boolean noCache, boolean rm, String buildArgs)
  • Method Details

    • getDockerFolder

      public String getDockerFolder()
    • getImageTag

      public String getImageTag()
    • getDockerFile

      public String getDockerFile()
    • isPull

      public boolean isPull()
    • isNoCache

      public boolean isNoCache()
    • isRm

      public boolean isRm()
    • getBuildArgs

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