Class AbstractDockerRegistryTask<T extends AbstractDockerRegistryTask<T>>

    • 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
    • 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 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.