public class BitbucketServerTriggerExporter extends Object implements TriggerDefinitionExporter
| Constructor and Description |
|---|
BitbucketServerTriggerExporter() |
| Modifier and Type | Method and Description |
|---|---|
@Nullable com.atlassian.bamboo.specs.builders.trigger.BitbucketServerTrigger |
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, waittoSpecsEntity@NotNull public @NotNull Map<String,String> toTriggerConfiguration(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.trigger.TriggerProperties triggerProperties, @NotNull @NotNull Triggerable triggerable)
TriggerDefinitionExportertoTriggerConfiguration in interface TriggerDefinitionExporter@NotNull
public @NotNull com.atlassian.bamboo.specs.api.builders.trigger.Trigger toSpecsEntity(@NotNull
@NotNull TriggerDefinition triggerDefinition)
TriggerDefinitionExportertoSpecsEntity in interface TriggerDefinitionExporterpublic 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)
TriggerDefinitionExporterShould 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)
TriggerDefinitionExportertoYaml in interface TriggerDefinitionExporter@Nullable
public @Nullable com.atlassian.bamboo.specs.builders.trigger.BitbucketServerTrigger fromYaml(@NotNull
@NotNull Node node,
@NotNull
@NotNull TaskValidationContext context)
throws YamlSpecsValidationException
TriggerDefinitionExporterfromYaml in interface TriggerDefinitionExporternode - 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 contextYamlSpecsValidationExceptionCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.