Class CommitCommand
- java.lang.Object
-
- org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
-
- org.jenkinsci.plugins.dockerbuildstep.cmd.CommitCommand
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<DockerCommand>
public class CommitCommand extends DockerCommand
This command commits changes done in specified container and create new image from it.- Author:
- vjuranek
- See Also:
- Create a new image from a container
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommitCommand.CommitCommandDescriptor
-
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 CommitCommand(String containerId, String repo, String tag, String runCmd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Launcher launcher, AbstractBuild build, ConsoleLogger console)
String
getContainerId()
String
getRepo()
String
getRunCmd()
String
getTag()
-
Methods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
all, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
-
-
-
-
Method Detail
-
getContainerId
public String getContainerId()
-
getRepo
public String getRepo()
-
getTag
public String getTag()
-
getRunCmd
public String getRunCmd()
-
execute
public void execute(Launcher launcher, AbstractBuild build, ConsoleLogger console) throws com.github.dockerjava.api.exception.DockerException, AbortException
- Specified by:
execute
in classDockerCommand
- Throws:
com.github.dockerjava.api.exception.DockerException
AbortException
-
-