Class SaveImageCommand
- java.lang.Object
-
- org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
-
- org.jenkinsci.plugins.dockerbuildstep.cmd.SaveImageCommand
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<DockerCommand>
public class SaveImageCommand extends DockerCommand
This command saves the specified Docker image.- Author:
- draoullig
- See Also:
- docker save
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SaveImageCommand.RemoveImageCommandDescriptor
-
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 SaveImageCommand(String imageName, String imageTag, String destination, String filename, boolean ignoreIfNotFound)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Launcher launcher, AbstractBuild build, ConsoleLogger console)
String
getDestination()
String
getFilename()
boolean
getIgnoreIfNotFound()
String
getImageName()
String
getImageTag()
-
Methods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
all, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
-
-
-
-
Method Detail
-
getImageName
public String getImageName()
-
getImageTag
public String getImageTag()
-
getDestination
public String getDestination()
-
getFilename
public String getFilename()
-
getIgnoreIfNotFound
public boolean getIgnoreIfNotFound()
-
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
-
-