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:
- Build an image
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateImageCommand.CreateImageCommandDescriptor
-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
DockerCommand.DockerCommandDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
CREDENTIALS_MATCHER
-
-
Constructor Summary
Constructors Constructor Description CreateImageCommand(String dockerFolder, String imageTag, String dockerFile, boolean pull, boolean noCache, boolean rm, String buildArgs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Launcher launcher, AbstractBuild build, ConsoleLogger console)
String
getBuildArgs()
String
getDockerFile()
String
getDockerFolder()
String
getImageTag()
boolean
isNoCache()
boolean
isPull()
boolean
isRm()
-
Methods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
all, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
-
-
-
-
Method Detail
-
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 classDockerCommand
- Throws:
com.github.dockerjava.api.exception.DockerException
-
-