Class DefaultDockerHandlerImpl
java.lang.Object
com.atlassian.bamboo.build.docker.DefaultDockerHandlerImpl
- All Implemented Interfaces:
DockerHandler
-
Constructor Summary
ConstructorDescriptionDefaultDockerHandlerImpl
(DockerPipelineConfiguration configuration, DockerPipelineValidationService dockerPipelineValidationService, EnvironmentCustomConfigService environmentCustomConfigService, com.atlassian.plugin.ModuleDescriptor moduleDescriptor, TemplateRenderer templateRenderer, TaskManager taskManager, boolean create) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendConfiguration
(BuildConfiguration buildConfiguration, Map<String, Object> webFragmentsContextMap, boolean enabled) void
disable
(BuildDefinition buildDefinition, Job job) Called for Docker isolation options that were not selected in Job related UIs.void
disable
(Environment environment) Called for Docker isolation options that were not selected in Environment related UIs.void
enableAndUpdate
(BuildDefinition buildDefinition, Job job, Map<String, Object> webFragmentsContextMap) Called for the selected Docker isolation option in Job related UIs.void
enableAndUpdate
(Environment environment, Map<String, Object> webFragmentsContextMap) Called for the selected Docker isolation option in Environment related UIs.Renders the edit page.Identifier of Docker isolation type.Renders the view page.boolean
Returns enablement state of the implementation.validateConfig
(Map<String, Object> webFragmentsContextMap) validate the configuration, only called for enabled option.
-
Constructor Details
-
DefaultDockerHandlerImpl
public DefaultDockerHandlerImpl(DockerPipelineConfiguration configuration, DockerPipelineValidationService dockerPipelineValidationService, EnvironmentCustomConfigService environmentCustomConfigService, com.atlassian.plugin.ModuleDescriptor moduleDescriptor, TemplateRenderer templateRenderer, TaskManager taskManager, boolean create)
-
-
Method Details
-
getEditHtml
Description copied from interface:DockerHandler
Renders the edit page.- Specified by:
getEditHtml
in interfaceDockerHandler
-
getViewHtml
Description copied from interface:DockerHandler
Renders the view page.- Specified by:
getViewHtml
in interfaceDockerHandler
-
isEnabled
public boolean isEnabled()Description copied from interface:DockerHandler
Returns enablement state of the implementation. Typically either 0 or 1 of the implementations are enabled.- Specified by:
isEnabled
in interfaceDockerHandler
- Returns:
- true if enabled.
-
getIsolationType
Description copied from interface:DockerHandler
Identifier of Docker isolation type.- Specified by:
getIsolationType
in interfaceDockerHandler
- Returns:
-
validateConfig
validate the configuration, only called for enabled option.- Specified by:
validateConfig
in interfaceDockerHandler
- Parameters:
webFragmentsContextMap
-- Returns:
-
enableAndUpdate
public void enableAndUpdate(BuildDefinition buildDefinition, Job job, Map<String, Object> webFragmentsContextMap) Description copied from interface:DockerHandler
Called for the selected Docker isolation option in Job related UIs. The implementation is to construct the object from webFragmentsContextMap and store it in provided buildDefinition that is later stored by the infrastructure.- Specified by:
enableAndUpdate
in interfaceDockerHandler
-
enableAndUpdate
Description copied from interface:DockerHandler
Called for the selected Docker isolation option in Environment related UIs. The implementation is to construct the object from webFragmentsContextMap and save the new values.- Specified by:
enableAndUpdate
in interfaceDockerHandler
-
disable
Description copied from interface:DockerHandler
Called for Docker isolation options that were not selected in Job related UIs. The implementation is to disable itself, perform cleanup of configuration in provided buildDefition object.- Specified by:
disable
in interfaceDockerHandler
-
disable
Description copied from interface:DockerHandler
Called for Docker isolation options that were not selected in Environment related UIs.- Specified by:
disable
in interfaceDockerHandler
-
appendConfiguration
public void appendConfiguration(BuildConfiguration buildConfiguration, Map<String, Object> webFragmentsContextMap, boolean enabled) - Specified by:
appendConfiguration
in interfaceDockerHandler
-