public class ArtifactDownloaderTaskExporter extends Object implements TaskDefinitionExporter
| Constructor and Description |
|---|
ArtifactDownloaderTaskExporter() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable com.atlassian.bamboo.specs.builders.task.ArtifactDownloaderTask |
fromYaml(@NotNull Node node,
@NotNull TaskValidationContext context)
Parse YAML node to Task Specs builder.
|
void |
setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager) |
void |
setBambooAuthenticationContext(BambooAuthenticationContext bambooAuthenticationContext) |
void |
setBambooPermissionManager(BambooPermissionManager bambooPermissionManager) |
void |
setDeploymentProjectService(DeploymentProjectService deploymentProjectService) |
void |
setPlanManager(PlanManager planManager) |
@NotNull com.atlassian.bamboo.specs.builders.task.ArtifactDownloaderTask |
toSpecsEntity(@NotNull TaskContainer taskContainer,
@NotNull TaskDefinition taskDefinition)
Create Bamboo Specs object representing this task.
|
@NotNull com.atlassian.bamboo.specs.builders.task.ArtifactDownloaderTask |
toSpecsEntity(@NotNull TaskDefinition taskDefinition)
Create Bamboo Specs object representing this task.
|
@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.
|
<T extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> |
toYaml(T genericTaskProperties)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoTaskConfiguration@NotNull public @NotNull Map<String,String> toTaskConfiguration(@NotNull @NotNull TaskContainer taskContainer, @NotNull @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 public @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)
TaskDefinitionExportertoTaskConfiguration in interface TaskDefinitionExportertaskContainer - 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
public @NotNull com.atlassian.bamboo.specs.builders.task.ArtifactDownloaderTask toSpecsEntity(@NotNull
@NotNull TaskDefinition taskDefinition)
TaskDefinitionExportertoSpecsEntity in interface TaskDefinitionExporter@NotNull
public @NotNull com.atlassian.bamboo.specs.builders.task.ArtifactDownloaderTask toSpecsEntity(@NotNull
@NotNull TaskContainer taskContainer,
@NotNull
@NotNull TaskDefinition taskDefinition)
TaskDefinitionExportertoSpecsEntity in interface TaskDefinitionExporter@NotNull public @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)
TaskDefinitionExporterShould check RSS permissions if necessary.
validate in interface TaskDefinitionExporter@Nullable public <T extends com.atlassian.bamboo.specs.api.model.task.TaskProperties> @Nullable Node toYaml(@NotNull T genericTaskProperties)
TaskDefinitionExportertoYaml in interface TaskDefinitionExporter@Nullable
public @Nullable com.atlassian.bamboo.specs.builders.task.ArtifactDownloaderTask fromYaml(@NotNull
@NotNull Node node,
@NotNull
@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 contextpublic void setPlanManager(PlanManager planManager)
public void setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)
public void setDeploymentProjectService(DeploymentProjectService deploymentProjectService)
public void setBambooPermissionManager(BambooPermissionManager bambooPermissionManager)
public void setBambooAuthenticationContext(BambooAuthenticationContext bambooAuthenticationContext)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.