Package com.atlassian.bamboo.build
Interface BuildTriggerConditionExporter<P extends com.atlassian.bamboo.specs.api.model.trigger.TriggerConditionProperties>
- All Known Implementing Classes:
DefaultTriggerConditionExporter
,PlansGreenConditionExporter
public interface BuildTriggerConditionExporter<P extends com.atlassian.bamboo.specs.api.model.trigger.TriggerConditionProperties>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T,
P>>
TtoConfigurationMap
(P properties) <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T,
P>>
TtoSpecsEntity
(@NotNull Map<String, String> triggerConditionConfigurations) Create Bamboo Specs object representing this trigger condition.default @Nullable Node
@NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem>
validate
(TriggerValidationContext validationContext, P condition)
-
Method Details
-
getConfigurationKeys
- Returns:
- config keys which exporter expect at configuration map.
-
toSpecsEntity
@Nullable <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T,P>> T toSpecsEntity(@NotNull @NotNull Map<String, String> triggerConditionConfigurations) Create Bamboo Specs object representing this trigger condition.- Returns:
- Specs builder.
-
toConfigurationMap
- Returns:
- trigger condition configuration map extracted from TriggerConditionProperties.
-
validate
@NotNull @NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(TriggerValidationContext validationContext, P condition) -
fromYaml
@Nullable default <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T,P>> T fromYaml(Node node) - Returns:
- Specs builder.
-
toYaml
-