Class DockerRegistryToken
java.lang.Object
org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken
- All Implemented Interfaces:
Serializable
Represents an authentication token that docker(1) understands when pushing/pulling
from a docker registry. Obtained from various
Credentials implementations via AuthenticationTokens.- Author:
- Kohsuke Kawaguchi
- See Also:
-
AuthenticationTokens- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()getToken()newKeyMaterialFactory(URL endpoint, FilePath workspace, Launcher launcher, EnvVars env, TaskListener listener, String dockerExecutable) Sets up an environment logged in to the specified Docker registry.newKeyMaterialFactory(URL endpoint, FilePath workspace, Launcher launcher, TaskListener listener, String dockerExecutable) Deprecated.newKeyMaterialFactory(URL endpoint, hudson.remoting.VirtualChannel target) newKeyMaterialFactory(URL endpoint, hudson.remoting.VirtualChannel target, Launcher launcher, TaskListener listener)
-
Constructor Details
-
DockerRegistryToken
-
-
Method Details
-
getEmail
-
getToken
-
newKeyMaterialFactory
@Deprecated public KeyMaterialFactory newKeyMaterialFactory(URL endpoint, @NonNull hudson.remoting.VirtualChannel target) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
newKeyMaterialFactory
@Deprecated public KeyMaterialFactory newKeyMaterialFactory(@NonNull URL endpoint, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener, @NonNull String dockerExecutable) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
newKeyMaterialFactory
public KeyMaterialFactory newKeyMaterialFactory(@NonNull URL endpoint, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull EnvVars env, @NonNull TaskListener listener, @NonNull String dockerExecutable) throws InterruptedException, IOException Sets up an environment logged in to the specified Docker registry.- Parameters:
dockerExecutable- as inDockerTool.getExecutable(java.lang.String, hudson.model.Node, hudson.model.TaskListener, hudson.EnvVars), with a 1.8+ client- Throws:
InterruptedExceptionIOException
-
newKeyMaterialFactory
@Deprecated public KeyMaterialFactory newKeyMaterialFactory(@NonNull URL endpoint, @NonNull hudson.remoting.VirtualChannel target, @CheckForNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException Makes the credentials available locally and returnsKeyMaterialFactorythat gives you the parameters needed to access it. This is done by inserting the token into~/.dockercfg- Throws:
InterruptedExceptionIOException
-
newKeyMaterialFactory(URL, FilePath, Launcher, EnvVars, TaskListener, String)