public interface TaskDefinitionExporter
Modifier and Type | Method and Description |
---|---|
default <T extends com.atlassian.bamboo.specs.api.builders.task.Task<T,P>,P extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> |
fromYaml(Node node,
TaskValidationContext context)
Parse YAML node to Task Specs builder.
|
default <T extends com.atlassian.bamboo.specs.api.builders.task.Task<T,P>,P extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> |
toSpecsEntity(TaskContainer taskContainer,
TaskDefinition taskDefinition)
Create Bamboo Specs object representing this task.
|
<T extends com.atlassian.bamboo.specs.api.builders.task.Task<T,P>,P extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> |
toSpecsEntity(TaskDefinition taskDefinition)
Create Bamboo Specs object representing this task.
|
default Map<String,String> |
toTaskConfiguration(TaskContainer taskContainer,
List<TaskDefinition> precedingTasks,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Converts properties to Bamboo task configuration.
|
default Map<String,String> |
toTaskConfiguration(TaskContainer taskContainer,
List<TaskDefinition> precedingTasks,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties,
VcsBranch importedBranch)
Converts properties to Bamboo task configuration.
|
Map<String,String> |
toTaskConfiguration(TaskContainer taskContainer,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Converts properties to Bamboo task configuration.
|
default <T extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> |
toYaml(T taskProperties)
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.
|
@NotNull Map<String,String> toTaskConfiguration(@NotNull TaskContainer taskContainer, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
taskContainer
- current task container (a job or an environment for instance)taskProperties
- the current task@NotNull default Map<String,String> toTaskConfiguration(@NotNull TaskContainer taskContainer, @NotNull List<TaskDefinition> precedingTasks, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
taskContainer
- current task container (a job or an environment for instance)precedingTasks
- list of tasks declared before the current onetaskProperties
- the current task@NotNull default Map<String,String> toTaskConfiguration(@NotNull TaskContainer taskContainer, @NotNull List<TaskDefinition> precedingTasks, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties, @Nullable VcsBranch importedBranch)
taskContainer
- current task container (a job or an environment for instance)precedingTasks
- list of tasks declared before the current onetaskProperties
- the current taskimportedBranch
- imported branch if importing a divergent branch@NotNull <T extends com.atlassian.bamboo.specs.api.builders.task.Task<T,P>,P extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> T toSpecsEntity(@NotNull TaskDefinition taskDefinition)
@Nullable default <T extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> Node toYaml(@NotNull T taskProperties)
@Nullable default <T extends com.atlassian.bamboo.specs.api.builders.task.Task<T,P>,P extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> T fromYaml(@NotNull Node node, @NotNull TaskValidationContext context) throws YamlSpecsValidationException
node
- YAML node from user input. In general case it's same node generated by 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 toYaml(TaskProperties)
produces StringNode.context
- task validation contextYamlSpecsValidationException
@NotNull default <T extends com.atlassian.bamboo.specs.api.builders.task.Task<T,P>,P extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> T toSpecsEntity(@NotNull TaskContainer taskContainer, @NotNull TaskDefinition taskDefinition)
@NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull TaskValidationContext taskValidationContext, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Should check RSS permissions if necessary.
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.