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
FieldsModifier and TypeFieldDescriptionprotected @Nullable Stringprotected @NotNull Stringprotected @Nullable Stringprotected @Nullable SharedCredentialsIdentifierPropertiesprotected @Nullable StringFields inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerTask
environmentVariables, workingSubdirectoryFields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled -
Constructor Summary
Constructors -
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) booleaninthashCode()Methods inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerTask
environmentVariables, workingSubdirectoryMethods 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:
equalsin classAbstractDockerTask<T extends AbstractDockerRegistryTask<T>,DockerRegistryTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractDockerTask<T extends AbstractDockerRegistryTask<T>,DockerRegistryTaskProperties>
-