Class DockerPipelineConfigurationImpl
java.lang.Object
com.atlassian.bamboo.build.docker.DockerPipelineConfigurationImpl
- All Implemented Interfaces:
DockerPipelineConfiguration
,ConvertibleFromConfig
,OptionallyConvertibleFromConfig
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDockerPipelineConfigurationImpl
(@NotNull DockerPipelineConfiguration dockerPipelineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Additional arguments for docker command.@NotNull List<DataVolume>
List of data volume mapping between host and container.@Nullable String
getImage()
Docker image to be used for the Docker pipeline.int
hashCode()
boolean
Whether the Docker pipeline is enabled.boolean
isValid()
Is the object state valid after it has been initialised from properties.void
populateFromConfig
(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config) Update the current object with data in theHierarchicalConfiguration
void
setAdditionalArgs
(@NotNull Iterable<String> additionalArgs) void
setDataVolumes
(@NotNull Iterable<DataVolume> dataVolumes) void
setEnabled
(boolean enabled) void
@NotNull org.apache.commons.configuration.HierarchicalConfiguration
Generate aHierarchicalConfiguration
from the current state of the objecttoString()
-
Field Details
-
CONFIG_FIELD_PREFIX
-
PROGRAM_ARGUMENT
- See Also:
-
-
Constructor Details
-
DockerPipelineConfigurationImpl
public DockerPipelineConfigurationImpl() -
DockerPipelineConfigurationImpl
public DockerPipelineConfigurationImpl(@NotNull @NotNull DockerPipelineConfiguration dockerPipelineConfiguration)
-
-
Method Details
-
populateFromConfig
public void populateFromConfig(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration config) Description copied from interface:ConvertibleFromConfig
Update the current object with data in theHierarchicalConfiguration
- Specified by:
populateFromConfig
in interfaceConvertibleFromConfig
-
toConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()Description copied from interface:ConvertibleFromConfig
Generate aHierarchicalConfiguration
from the current state of the object- Specified by:
toConfiguration
in interfaceConvertibleFromConfig
- Returns:
- Always returns an
HierarchicalConfiguration
. Never null
-
isValid
public boolean isValid()Description copied from interface:OptionallyConvertibleFromConfig
Is the object state valid after it has been initialised from properties.- Specified by:
isValid
in interfaceOptionallyConvertibleFromConfig
- Returns:
-
equals
-
toString
-
hashCode
public int hashCode() -
isEnabled
public boolean isEnabled()Description copied from interface:DockerPipelineConfiguration
Whether the Docker pipeline is enabled.- Specified by:
isEnabled
in interfaceDockerPipelineConfiguration
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceDockerPipelineConfiguration
-
getImage
Description copied from interface:DockerPipelineConfiguration
Docker image to be used for the Docker pipeline. The value can be any valid image identifier accepted by Docker, in particular it can consist of registry information, namespace, image name and tag name.Example:
localhost:5000/atlassian/docker-image:version-5
- Specified by:
getImage
in interfaceDockerPipelineConfiguration
-
setImage
- Specified by:
setImage
in interfaceDockerPipelineConfiguration
-
getDataVolumes
Description copied from interface:DockerPipelineConfiguration
List of data volume mapping between host and container.- Specified by:
getDataVolumes
in interfaceDockerPipelineConfiguration
-
setDataVolumes
- Specified by:
setDataVolumes
in interfaceDockerPipelineConfiguration
-
getAdditionalArgs
Description copied from interface:DockerPipelineConfiguration
Additional arguments for docker command.- Specified by:
getAdditionalArgs
in interfaceDockerPipelineConfiguration
-
setAdditionalArgs
- Specified by:
setAdditionalArgs
in interfaceDockerPipelineConfiguration
-