Class PushImageCommand
java.lang.Object
org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
org.jenkinsci.plugins.dockerbuildstep.cmd.PushImageCommand
- All Implemented Interfaces:
ExtensionPoint
,Describable<DockerCommand>
This command pushes a Docker image on the repository.
- Author:
- wzheng2310@gmail.com (Wei Zheng)
- 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
ConstructorDescriptionPushImageCommand
(String image, String tag, String registry, org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint dockerRegistryEndpoint) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(Launcher launcher, AbstractBuild build, ConsoleLogger console) getImage()
getTag()
Methods inherited from class org.jenkinsci.plugins.dockerbuildstep.cmd.DockerCommand
all, attachContainerOutput, getAuthConfig, getClient, getClient, getConfig, getDescriptor, getDockerRegistryEndpoint, getInfoString, readResolve
-
Constructor Details
-
PushImageCommand
-
-
Method Details
-
getImage
-
getTag
-
getRegistry
-
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
-