Class DockerPullImageTask
- 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<DockerPullImageTask>
-
- com.atlassian.bamboo.specs.builders.task.DockerPullImageTask
-
public class DockerPullImageTask extends AbstractDockerRegistryTask<DockerPullImageTask>
Pulls docker image from the docker registry.
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerRegistryTask
email, image, password, registryType, sharedCredentialsIdentifier, username
-
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 DockerPullImageTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull DockerRegistryTaskProperties
build()
DockerPullImageTask
customRegistryImage(@NotNull java.lang.String repository)
Specify repository and image name which will be pulled from the custom registry.DockerPullImageTask
dockerHubImage(@NotNull java.lang.String repository)
Specify image name which will be pulled from Docker Hub.boolean
equals(java.lang.Object o)
int
hashCode()
-
Methods inherited from class com.atlassian.bamboo.specs.builders.task.AbstractDockerRegistryTask
authentication, authentication, authentication, defaultAuthentication
-
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
conditions, description, enabled, requirements, toString
-
-
-
-
Method Detail
-
dockerHubImage
public DockerPullImageTask dockerHubImage(@NotNull @NotNull java.lang.String repository)
Specify image name which will be pulled from Docker Hub. You can also optionally add namespace and tag. E.g namespace/repository:tagSetting either this field or
customRegistryImage(String)
is mandatory.- Overrides:
dockerHubImage
in classAbstractDockerRegistryTask<DockerPullImageTask>
-
customRegistryImage
public DockerPullImageTask customRegistryImage(@NotNull @NotNull java.lang.String repository)
Specify repository and image name which will be pulled from the custom registry. You can also optionally add namespace and tag. E.g registry.address:port/namespace/repository:tagSetting either this field or
dockerHubImage(String)
} is mandatory.- Overrides:
customRegistryImage
in classAbstractDockerRegistryTask<DockerPullImageTask>
-
build
@NotNull protected @NotNull DockerRegistryTaskProperties build()
- Specified by:
build
in classTask<DockerPullImageTask,DockerRegistryTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractDockerRegistryTask<DockerPullImageTask>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractDockerRegistryTask<DockerPullImageTask>
-
-