Class DockerPushImageTask
- 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<DockerPushImageTask>
-
- com.atlassian.bamboo.specs.builders.task.DockerPushImageTask
-
public class DockerPushImageTask extends AbstractDockerRegistryTask<DockerPushImageTask>
Pushes docker image to 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 DockerPushImageTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull DockerRegistryTaskPropertiesbuild()DockerPushImageTaskcustomRegistryImage(@NotNull java.lang.String repository)Specify repository and image name which will be pushed to the custom registry.DockerPushImageTaskdockerHubImage(@NotNull java.lang.String repository)Specify image name which will be pushed to Docker Hub.booleanequals(java.lang.Object o)inthashCode()-
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 DockerPushImageTask dockerHubImage(@NotNull @NotNull java.lang.String repository)
Specify image name which will be pushed to Docker Hub. You can also optionally add namespace and tag. E.g namespace/repository:tagSetting either this field or
customRegistryImage(String)is mandatory.- Overrides:
dockerHubImagein classAbstractDockerRegistryTask<DockerPushImageTask>
-
customRegistryImage
public DockerPushImageTask customRegistryImage(@NotNull @NotNull java.lang.String repository)
Specify repository and image name which will be pushed to 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:
customRegistryImagein classAbstractDockerRegistryTask<DockerPushImageTask>
-
build
@NotNull protected @NotNull DockerRegistryTaskProperties build()
- Specified by:
buildin classTask<DockerPushImageTask,DockerRegistryTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractDockerRegistryTask<DockerPushImageTask>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractDockerRegistryTask<DockerPushImageTask>
-
-