public abstract class AbstractDockerRegistryTask<T extends AbstractDockerRegistryTask<T>> extends AbstractDockerTask<T,DockerRegistryTaskProperties>
DockerPushImageTask
or
DockerPullImageTask
.Modifier and Type | Field and Description |
---|---|
protected String |
email |
protected String |
image |
protected String |
password |
protected DockerRegistryTaskProperties.RegistryType |
registryType |
protected SharedCredentialsIdentifierProperties |
sharedCredentialsIdentifier |
protected String |
username |
environmentVariables, workingSubdirectory
conditions, description, requirements, taskEnabled
Constructor and Description |
---|
AbstractDockerRegistryTask() |
Modifier and Type | Method and Description |
---|---|
T |
authentication(SharedCredentialsIdentifier sharedCredentialsIdentifier)
Sets authentication settings to authenticate to Docker registry by Shared credentials.
|
T |
authentication(String username,
String password)
Sets authentication settings to authenticate to Docker registry.
|
T |
authentication(String username,
String password,
String email)
Sets authentication settings to authenticate to Docker registry.
|
T |
customRegistryImage(String image) |
T |
defaultAuthentication()
Use agent's ~/.dockercfg credentials to authenticate to Docker registry.
|
T |
dockerHubImage(String image) |
boolean |
equals(Object o) |
int |
hashCode() |
environmentVariables, workingSubdirectory
build, conditions, description, enabled, requirements, toString
@NotNull protected String image
@NotNull protected DockerRegistryTaskProperties.RegistryType registryType
@Nullable protected String username
@Nullable protected String password
@Nullable protected String email
@Nullable protected SharedCredentialsIdentifierProperties sharedCredentialsIdentifier
public T authentication(@NotNull String username, @NotNull String password, @NotNull String email)
defaultAuthentication()
public T authentication(@NotNull String username, @NotNull String password)
defaultAuthentication()
public T authentication(@NotNull SharedCredentialsIdentifier sharedCredentialsIdentifier)
public T defaultAuthentication()
public boolean equals(Object o)
equals
in class AbstractDockerTask<T extends AbstractDockerRegistryTask<T>,DockerRegistryTaskProperties>
public int hashCode()
hashCode
in class AbstractDockerTask<T extends AbstractDockerRegistryTask<T>,DockerRegistryTaskProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.