Class TagImageCommand
- java.lang.Object
-
- org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
-
- org.jenkinsci.plugins.dockerbuildstep.cmd.TagImageCommand
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<DockerCommand>
public class TagImageCommand extends DockerCommand
This command tags the specified Docker image.- Author:
- draoullig
- See Also:
- Tag an image
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TagImageCommand.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 TagImageCommand(String image, String repository, String tag, boolean ignoreIfNotFound, boolean withForce)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Launcher launcher, AbstractBuild build, ConsoleLogger console)
boolean
getIgnoreIfNotFound()
String
getImage()
String
getRepository()
String
getTag()
boolean
getWithForce()
-
Methods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
all, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
-
-
-
-
Method Detail
-
getImage
public String getImage()
-
getRepository
public String getRepository()
-
getTag
public String getTag()
-
getIgnoreIfNotFound
public boolean getIgnoreIfNotFound()
-
getWithForce
public boolean getWithForce()
-
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
-
-