Class AbstractDockerRegistryTask<T extends AbstractDockerRegistryTask<T>>
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<T,P>
com.atlassian.bamboo.specs.builders.task.AbstractDockerTask<T,DockerRegistryTaskProperties>
com.atlassian.bamboo.specs.builders.task.AbstractDockerRegistryTask<T>
- Direct Known Subclasses:
DockerPullImageTask
,DockerPushImageTask
public abstract class AbstractDockerRegistryTask<T extends AbstractDockerRegistryTask<T>>
extends AbstractDockerTask<T,DockerRegistryTaskProperties>
Class containing common parts to Docker tasks which operates on Docker registry, like
DockerPushImageTask
or
DockerPullImageTask
.-
Field Summary
Modifier and TypeFieldDescriptionprotected @Nullable String
protected @NotNull String
protected @Nullable String
protected @Nullable SharedCredentialsIdentifierProperties
protected @Nullable String
Fields inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerTask
environmentVariables, workingSubdirectory
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthentication
(@NotNull SharedCredentialsIdentifier sharedCredentialsIdentifier) Sets authentication settings to authenticate to Docker registry by Shared credentials.authentication
(@NotNull String username, @NotNull String password) Sets authentication settings to authenticate to Docker registry.authentication
(@NotNull String username, @NotNull String password, @NotNull String email) Sets authentication settings to authenticate to Docker registry.customRegistryImage
(@NotNull String image) Use agent's ~/.dockercfg credentials to authenticate to Docker registry.dockerHubImage
(@NotNull String image) boolean
int
hashCode()
Methods inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerTask
environmentVariables, workingSubdirectory
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
build, conditions, description, enabled, requirements, toString
-
Field Details
-
image
-
registryType
-
username
-
password
-
email
-
-
Constructor Details
-
AbstractDockerRegistryTask
public AbstractDockerRegistryTask()
-
-
Method Details
-
dockerHubImage
-
customRegistryImage
-
authentication
public T authentication(@NotNull @NotNull String username, @NotNull @NotNull String password, @NotNull @NotNull String email) Sets authentication settings to authenticate to Docker registry. All fields are required. You can also use default authentication method bydefaultAuthentication()
-
authentication
Sets authentication settings to authenticate to Docker registry. All fields are required. You can also use default authentication method bydefaultAuthentication()
-
defaultAuthentication
Use agent's ~/.dockercfg credentials to authenticate to Docker registry. -
equals
- Overrides:
equals
in classAbstractDockerTask<T extends AbstractDockerRegistryTask<T>,
DockerRegistryTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractDockerTask<T extends AbstractDockerRegistryTask<T>,
DockerRegistryTaskProperties>
-