public abstract class TestParserTaskExporter extends Object implements TaskDefinitionExporter
| Modifier and Type | Class and Description |
|---|---|
static interface |
TestParserTaskExporter.Config |
static class |
TestParserTaskExporter.TestParserType |
| Constructor and Description |
|---|
TestParserTaskExporter() |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.bamboo.specs.builders.task.TestParserTask |
fromYaml(Node node,
TaskValidationContext context)
Parse YAML node to Task Specs builder.
|
protected abstract com.atlassian.bamboo.specs.model.task.TestParserTaskProperties.TestType |
getTestType() |
com.atlassian.bamboo.specs.api.builders.task.Task<com.atlassian.bamboo.specs.builders.task.TestParserTask,com.atlassian.bamboo.specs.model.task.TestParserTaskProperties> |
toSpecsEntity(TaskDefinition taskDefinition)
Create Bamboo Specs object representing this task.
|
Map<String,String> |
toTaskConfiguration(TaskContainer taskContainer,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Converts properties to Bamboo task configuration.
|
<T extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> |
toYaml(T genericTaskProperties)
Convert task definition to YAML node.
|
List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> |
validate(TaskValidationContext taskValidationContext,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Validates task properties in context of enclosing plan or deployment properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoSpecsEntity, toTaskConfiguration, toTaskConfiguration@NotNull public Map<String,String> toTaskConfiguration(@NotNull TaskContainer taskContainer, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
TaskDefinitionExportertoTaskConfiguration in interface TaskDefinitionExportertaskContainer - current task container (a job or an environment for instance)taskProperties - the current task@NotNull protected abstract com.atlassian.bamboo.specs.model.task.TestParserTaskProperties.TestType getTestType()
@NotNull
public com.atlassian.bamboo.specs.api.builders.task.Task<com.atlassian.bamboo.specs.builders.task.TestParserTask,com.atlassian.bamboo.specs.model.task.TestParserTaskProperties> toSpecsEntity(@NotNull
TaskDefinition taskDefinition)
TaskDefinitionExportertoSpecsEntity in interface TaskDefinitionExporter@NotNull public List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull TaskValidationContext taskValidationContext, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
TaskDefinitionExporterShould check RSS permissions if necessary.
validate in interface TaskDefinitionExporter@Nullable public <T extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> Node toYaml(@NotNull T genericTaskProperties)
TaskDefinitionExportertoYaml in interface TaskDefinitionExporter@Nullable
public com.atlassian.bamboo.specs.builders.task.TestParserTask fromYaml(@NotNull
Node node,
@NotNull
TaskValidationContext context)
TaskDefinitionExporterfromYaml in interface TaskDefinitionExporternode - YAML node from user input. In general case it's same node generated by TaskDefinitionExporter.toYaml(TaskProperties)
method, but in some cases it might contain additional general task elements, like conditions. These
elements should be ignored by method implementation and will be handled by Bamboo code. In such case
MapNode handler should be implemented even if TaskDefinitionExporter.toYaml(TaskProperties) produces StringNode.context - task validation contextCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.