Class AbstractDockerRegistryTask<T extends AbstractDockerRegistryTask<T>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T authentication​(@NotNull com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentialsIdentifier sharedCredentialsIdentifier)
      Sets authentication settings to authenticate to Docker registry by Shared credentials.
      T authentication​(@NotNull java.lang.String username, @NotNull java.lang.String password)
      Sets authentication settings to authenticate to Docker registry.
      T authentication​(@NotNull java.lang.String username, @NotNull java.lang.String password, @NotNull java.lang.String email)
      Sets authentication settings to authenticate to Docker registry.
      T customRegistryImage​(@NotNull java.lang.String image)  
      T defaultAuthentication()
      Use agent's ~/.dockercfg credentials to authenticate to Docker registry.
      T dockerHubImage​(@NotNull java.lang.String image)  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task

        build, conditions, description, enabled, requirements, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • image

        @NotNull
        protected @NotNull java.lang.String image
      • username

        @Nullable
        protected @Nullable java.lang.String username
      • password

        @Nullable
        protected @Nullable java.lang.String password
      • email

        @Nullable
        protected @Nullable java.lang.String email
      • sharedCredentialsIdentifier

        @Nullable
        protected @Nullable com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsIdentifierProperties sharedCredentialsIdentifier
    • Constructor Detail

      • AbstractDockerRegistryTask

        public AbstractDockerRegistryTask()
    • Method Detail

      • dockerHubImage

        public T dockerHubImage​(@NotNull
                                @NotNull java.lang.String image)
      • customRegistryImage

        public T customRegistryImage​(@NotNull
                                     @NotNull java.lang.String image)
      • authentication

        public T authentication​(@NotNull
                                @NotNull java.lang.String username,
                                @NotNull
                                @NotNull java.lang.String password,
                                @NotNull
                                @NotNull java.lang.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 java.lang.String username,
                                @NotNull
                                @NotNull java.lang.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.