public class AfterSuccessfulPlanTriggerExporter extends Object implements TriggerDefinitionExporter
Constructor and Description |
---|
AfterSuccessfulPlanTriggerExporter(CachedPlanManager cachedPlanManager,
ChainBranchManager chainBranchManager,
PlanManager planManager,
DeploymentProjectService deploymentProjectService) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.bamboo.specs.builders.trigger.AfterSuccessfulBuildPlanTrigger |
fromYaml(Node node,
TaskValidationContext context)
Parse YAML node to Trigger Specs builder.
|
com.atlassian.bamboo.specs.api.builders.trigger.Trigger |
toSpecsEntity(TriggerDefinition triggerDefinition)
Create Bamboo Specs object representing this trigger.
|
com.atlassian.bamboo.specs.api.builders.trigger.Trigger |
toSpecsEntity(TriggerDefinition triggerDefinition,
Triggerable triggerable)
Create Bamboo Specs object representing this trigger.
|
Map<String,String> |
toTriggerConfiguration(com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties,
Triggerable triggerable)
Converts properties to Bamboo trigger configuration.
|
<T extends com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties> |
toYaml(T triggerProperties)
Convert trigger definition to YAML node.
|
List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> |
validate(TriggerValidationContext triggerValidationContext,
com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
Validates trigger properties in context of enclosing plan or deployment properties.
|
public AfterSuccessfulPlanTriggerExporter(CachedPlanManager cachedPlanManager, ChainBranchManager chainBranchManager, PlanManager planManager, DeploymentProjectService deploymentProjectService)
@NotNull public Map<String,String> toTriggerConfiguration(@NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties, @NotNull Triggerable triggerable)
TriggerDefinitionExporter
toTriggerConfiguration
in interface TriggerDefinitionExporter
@NotNull public com.atlassian.bamboo.specs.api.builders.trigger.Trigger toSpecsEntity(@NotNull TriggerDefinition triggerDefinition)
TriggerDefinitionExporter
toSpecsEntity
in interface TriggerDefinitionExporter
@NotNull public com.atlassian.bamboo.specs.api.builders.trigger.Trigger toSpecsEntity(@NotNull TriggerDefinition triggerDefinition, @NotNull Triggerable triggerable)
TriggerDefinitionExporter
toSpecsEntity
in interface TriggerDefinitionExporter
public List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull TriggerValidationContext triggerValidationContext, @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
TriggerDefinitionExporter
Should check RSS permissions if necessary.
validate
in interface TriggerDefinitionExporter
@Nullable public <T extends com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties> Node toYaml(@NotNull T triggerProperties)
TriggerDefinitionExporter
toYaml
in interface TriggerDefinitionExporter
@Nullable public com.atlassian.bamboo.specs.builders.trigger.AfterSuccessfulBuildPlanTrigger fromYaml(@NotNull Node node, @NotNull TaskValidationContext context) throws YamlSpecsValidationException
TriggerDefinitionExporter
fromYaml
in interface TriggerDefinitionExporter
node
- YAML node from user input. In general case it's same node generated by TriggerDefinitionExporter.toYaml(TriggerProperties)
method, but in some cases it might contain additional trigger 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 TriggerDefinitionExporter.toYaml(TriggerProperties)
produces StringNode.context
- task validation contextYamlSpecsValidationException
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.