public final class DockerRegistryToken extends Object implements Serializable
Credentials implementations via AuthenticationTokens.AuthenticationTokens,
Serialized Form| Constructor and Description |
|---|
DockerRegistryToken(String email,
String token) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEmail() |
String |
getToken() |
KeyMaterialFactory |
newKeyMaterialFactory(URL endpoint,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.EnvVars env,
hudson.model.TaskListener listener,
String dockerExecutable)
Sets up an environment logged in to the specified Docker registry.
|
KeyMaterialFactory |
newKeyMaterialFactory(URL endpoint,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
String dockerExecutable)
|
KeyMaterialFactory |
newKeyMaterialFactory(URL endpoint,
hudson.remoting.VirtualChannel target)
|
KeyMaterialFactory |
newKeyMaterialFactory(URL endpoint,
hudson.remoting.VirtualChannel target,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
|
public String getEmail()
public String getToken()
@Deprecated public KeyMaterialFactory newKeyMaterialFactory(URL endpoint, @Nonnull hudson.remoting.VirtualChannel target) throws InterruptedException, IOException
InterruptedExceptionIOException@Deprecated public KeyMaterialFactory newKeyMaterialFactory(@Nonnull URL endpoint, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener, @Nonnull String dockerExecutable) throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic KeyMaterialFactory newKeyMaterialFactory(@Nonnull URL endpoint, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.EnvVars env, @Nonnull hudson.model.TaskListener listener, @Nonnull String dockerExecutable) throws InterruptedException, IOException
dockerExecutable - as in DockerTool.getExecutable(java.lang.String, hudson.model.Node, hudson.model.TaskListener, hudson.EnvVars), with a 1.8+ clientInterruptedExceptionIOException@Deprecated public KeyMaterialFactory newKeyMaterialFactory(@Nonnull URL endpoint, @Nonnull hudson.remoting.VirtualChannel target, @CheckForNull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
KeyMaterialFactory that gives you the parameters
needed to access it.
This is done by inserting the token into ~/.dockercfgInterruptedExceptionIOExceptionCopyright © 2016–2019. All rights reserved.