Class CreateImageCommand
java.lang.Object
org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
org.jenkinsci.plugins.dockerbuildstep.cmd.CreateImageCommand
- All Implemented Interfaces:
ExtensionPoint
,Describable<DockerCommand>
This command creates a new image from specified Dockerfile.
- Author:
- marcus
- See Also:
-
Nested Class Summary
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
ConstructorDescriptionCreateImageCommand
(String dockerFolder, String imageTag, String dockerFile, boolean pull, boolean noCache, boolean rm, String buildArgs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(Launcher launcher, AbstractBuild build, ConsoleLogger console) boolean
boolean
isPull()
boolean
isRm()
Methods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
all, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
-
Constructor Details
-
CreateImageCommand
-
-
Method Details
-
getDockerFolder
-
getImageTag
-
getDockerFile
-
isPull
public boolean isPull() -
isNoCache
public boolean isNoCache() -
isRm
public boolean isRm() -
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
-