public class AfterSuccessfulDeploymentTriggerExporter extends Object implements TriggerDefinitionExporter
Constructor and Description |
---|
AfterSuccessfulDeploymentTriggerExporter(EnvironmentService environmentService) |
Modifier and Type | Method and Description |
---|---|
@Nullable com.atlassian.bamboo.specs.builders.trigger.AfterSuccessfulDeploymentTrigger |
fromYaml(@NotNull Node node,
@NotNull TaskValidationContext context)
Parse YAML node to Trigger Specs builder.
|
@NotNull com.atlassian.bamboo.specs.api.builders.trigger.Trigger |
toSpecsEntity(@NotNull TriggerDefinition triggerDefinition)
Create Bamboo Specs object representing this trigger.
|
@NotNull Map<String,String> |
toTriggerConfiguration(@NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties,
@NotNull 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(@NotNull TriggerValidationContext triggerValidationContext,
@NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties)
Validates trigger properties in context of enclosing plan or deployment properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toSpecsEntity
public AfterSuccessfulDeploymentTriggerExporter(EnvironmentService environmentService)
@NotNull public @NotNull Map<String,String> toTriggerConfiguration(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties, @NotNull @NotNull Triggerable triggerable)
TriggerDefinitionExporter
toTriggerConfiguration
in interface TriggerDefinitionExporter
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.trigger.Trigger toSpecsEntity(@NotNull @NotNull TriggerDefinition triggerDefinition)
TriggerDefinitionExporter
toSpecsEntity
in interface TriggerDefinitionExporter
public List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull @NotNull TriggerValidationContext triggerValidationContext, @NotNull @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> @Nullable Node toYaml(@NotNull T triggerProperties)
TriggerDefinitionExporter
toYaml
in interface TriggerDefinitionExporter
@Nullable public @Nullable com.atlassian.bamboo.specs.builders.trigger.AfterSuccessfulDeploymentTrigger fromYaml(@NotNull @NotNull Node node, @NotNull @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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.