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 Details

    • 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 com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsIdentifierProperties sharedCredentialsIdentifier
  • Constructor Details

    • AbstractDockerRegistryTask

      public AbstractDockerRegistryTask()
  • Method Details

    • dockerHubImage

      public T dockerHubImage(@NotNull @NotNull String image)
    • customRegistryImage

      public T customRegistryImage(@NotNull @NotNull String image)
    • 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 by defaultAuthentication()
    • 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 by defaultAuthentication()
    • authentication

      public T authentication(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.credentials.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:
      equals in class AbstractDockerTask<T extends AbstractDockerRegistryTask<T>,DockerRegistryTaskProperties>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractDockerTask<T extends AbstractDockerRegistryTask<T>,DockerRegistryTaskProperties>