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, likeDockerPushImageTaskorDockerPullImageTask.
-
-
Field Summary
Fields Modifier and Type Field Description protected @Nullable Stringemailprotected @NotNull Stringimageprotected @Nullable Stringpasswordprotected DockerRegistryTaskProperties.RegistryTyperegistryTypeprotected @Nullable SharedCredentialsIdentifierPropertiessharedCredentialsIdentifierprotected @Nullable Stringusername-
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
Constructors Constructor Description AbstractDockerRegistryTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tauthentication(@NotNull SharedCredentialsIdentifier sharedCredentialsIdentifier)Sets authentication settings to authenticate to Docker registry by Shared credentials.Tauthentication(@NotNull String username, @NotNull String password)Sets authentication settings to authenticate to Docker registry.Tauthentication(@NotNull String username, @NotNull String password, @NotNull String email)Sets authentication settings to authenticate to Docker registry.TcustomRegistryImage(@NotNull String image)TdefaultAuthentication()Use agent's ~/.dockercfg credentials to authenticate to Docker registry.TdockerHubImage(@NotNull String image)booleanequals(Object o)inthashCode()-
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 Detail
-
image
@NotNull protected @NotNull String image
-
registryType
@NotNull protected DockerRegistryTaskProperties.RegistryType registryType
-
username
@Nullable protected @Nullable String username
-
password
@Nullable protected @Nullable String password
-
email
@Nullable protected @Nullable String email
-
sharedCredentialsIdentifier
@Nullable protected @Nullable SharedCredentialsIdentifierProperties sharedCredentialsIdentifier
-
-
Method Detail
-
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
public T authentication(@NotNull @NotNull String username, @NotNull @NotNull String password)
Sets authentication settings to authenticate to Docker registry. All fields are required. You can also use default authentication method bydefaultAuthentication()
-
authentication
public T authentication(@NotNull @NotNull SharedCredentialsIdentifier sharedCredentialsIdentifier)
Sets authentication settings to authenticate to Docker registry by Shared credentials.
-
defaultAuthentication
public T defaultAuthentication()
Use agent's ~/.dockercfg credentials to authenticate to Docker registry.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractDockerTask<T extends AbstractDockerRegistryTask<T>,DockerRegistryTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractDockerTask<T extends AbstractDockerRegistryTask<T>,DockerRegistryTaskProperties>
-
-