public class DefaultDockerHandlerImpl extends Object implements DockerHandler
Constructor and Description |
---|
DefaultDockerHandlerImpl(DockerPipelineConfiguration configuration,
DockerPipelineValidationService dockerPipelineValidationService,
EnvironmentCustomConfigService environmentCustomConfigService,
com.atlassian.plugin.ModuleDescriptor moduleDescriptor,
TemplateRenderer templateRenderer,
TaskManager taskManager,
boolean create) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
String |
getEditHtml()
Renders the edit page.
|
String |
getIsolationType()
Identifier of Docker isolation type.
|
String |
getViewHtml()
Renders the view page.
|
boolean |
isEnabled()
Returns enablement state of the implementation.
|
ErrorCollection |
validateConfig(Map<String,Object> webFragmentsContextMap)
validate the configuration, only called for enabled option.
|
public DefaultDockerHandlerImpl(DockerPipelineConfiguration configuration, DockerPipelineValidationService dockerPipelineValidationService, EnvironmentCustomConfigService environmentCustomConfigService, com.atlassian.plugin.ModuleDescriptor moduleDescriptor, TemplateRenderer templateRenderer, TaskManager taskManager, boolean create)
public String getEditHtml()
DockerHandler
getEditHtml
in interface DockerHandler
public String getViewHtml()
DockerHandler
getViewHtml
in interface DockerHandler
public boolean isEnabled()
DockerHandler
isEnabled
in interface DockerHandler
public String getIsolationType()
DockerHandler
getIsolationType
in interface DockerHandler
public ErrorCollection validateConfig(Map<String,Object> webFragmentsContextMap)
validateConfig
in interface DockerHandler
webFragmentsContextMap
- public void enableAndUpdate(BuildDefinition buildDefinition, Job job, Map<String,Object> webFragmentsContextMap)
DockerHandler
enableAndUpdate
in interface DockerHandler
public void enableAndUpdate(Environment environment, Map<String,Object> webFragmentsContextMap)
DockerHandler
enableAndUpdate
in interface DockerHandler
public void disable(BuildDefinition buildDefinition, Job job)
DockerHandler
disable
in interface DockerHandler
public void disable(Environment environment)
DockerHandler
disable
in interface DockerHandler
public void appendConfiguration(BuildConfiguration buildConfiguration, Map<String,Object> webFragmentsContextMap, boolean enabled)
appendConfiguration
in interface DockerHandler
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.