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(@NotNull Node node,
@NotNull 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(@NotNull TaskContainer taskContainer,
@NotNull 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(@NotNull TaskDefinition taskDefinition)
Create Bamboo Specs object representing this task.
|
default @NotNull Map<String,String> |
toTaskConfiguration(@NotNull TaskContainer taskContainer,
@NotNull List<TaskDefinition> precedingTasks,
@NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Converts properties to Bamboo task configuration.
|
default @NotNull Map<String,String> |
toTaskConfiguration(@NotNull TaskContainer taskContainer,
@NotNull List<TaskDefinition> precedingTasks,
@NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties,
@Nullable VcsBranch importedBranch)
Converts properties to Bamboo task configuration.
|
@NotNull Map<String,String> |
toTaskConfiguration(@NotNull TaskContainer taskContainer,
@NotNull 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.
|
@NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> |
validate(@NotNull TaskValidationContext taskValidationContext,
@NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Validates task properties in context of enclosing plan or deployment properties.
|
@NotNull @NotNull Map<String,String> toTaskConfiguration(@NotNull @NotNull TaskContainer taskContainer, @NotNull @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 @NotNull Map<String,String> toTaskConfiguration(@NotNull @NotNull TaskContainer taskContainer, @NotNull @NotNull List<TaskDefinition> precedingTasks, @NotNull @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 @NotNull Map<String,String> toTaskConfiguration(@NotNull @NotNull TaskContainer taskContainer, @NotNull @NotNull List<TaskDefinition> precedingTasks, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties, @Nullable @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 @NotNull TaskDefinition taskDefinition)
@Nullable default <T extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> @Nullable 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 @NotNull Node node, @NotNull @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 @NotNull TaskContainer taskContainer, @NotNull @NotNull TaskDefinition taskDefinition)
@NotNull @NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull @NotNull TaskValidationContext taskValidationContext, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties)
Should check RSS permissions if necessary.
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.