public class TaskDefinitionExportHelper extends Object
| Constructor and Description |
|---|
TaskDefinitionExportHelper(TaskManager taskManager) |
| Modifier and Type | Method and Description |
|---|---|
TaskDefinition |
importTaskDefinition(long id,
TaskContainer taskContainer,
List<TaskDefinition> precedingTasks,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties,
boolean finalTask)
Import the task definition from its properties.
|
TaskDefinition |
importTaskDefinition(long id,
TaskContainer taskContainer,
com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties,
boolean finalTask)
Import the task definition from its properties.
|
com.atlassian.bamboo.specs.api.builders.task.Task |
toSpecsEntity(TaskContainer taskContainer,
TaskDefinition taskDefinition) |
void |
validateTaskProperties(com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties) |
void |
validateTaskProperties(com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties) |
@Autowired public TaskDefinitionExportHelper(TaskManager taskManager)
@NotNull public com.atlassian.bamboo.specs.api.builders.task.Task toSpecsEntity(TaskContainer taskContainer, TaskDefinition taskDefinition)
@NotNull public TaskDefinition importTaskDefinition(long id, @NotNull TaskContainer taskContainer, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties, boolean finalTask) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
id - an identifier this task shall be assigned withtaskContainer - container of this task (for instance a job or an environment)taskProperties - the current task to be importedfinalTask - whether it shall be a final taskcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - if properties are invalidYamlValidationException - if yaml is invalid@NotNull public TaskDefinition importTaskDefinition(long id, @NotNull TaskContainer taskContainer, @NotNull List<TaskDefinition> precedingTasks, @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties, boolean finalTask) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
id - an identifier this task shall be assigned withtaskContainer - container of this task (for instance a job or an environment)precedingTasks - lists of tasks which were declared before the current tasktaskProperties - the current task to be importedfinalTask - whether it shall be a final taskcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException - if properties are invalidYamlValidationException - if yaml is invalid@NotNull
public void validateTaskProperties(@NotNull
com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties)
throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException,
YamlValidationException
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationExceptionYamlValidationException@NotNull
public void validateTaskProperties(@NotNull
com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.