Class AnyTrigger
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.trigger.Trigger<T,P>
com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger<AnyTrigger,AnyTriggerProperties>
com.atlassian.bamboo.specs.api.builders.trigger.AnyTrigger
Represents a trigger of any type.
Since knowledge of internal representation of plugin data is required to properly construct this object, this class should only be used if the specialised implementation of a given trigger is not available.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
RepositoryBasedTrigger.TriggeringRepositoriesType
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
selectedTriggeringRepositories, triggeringRepositoriesType
Fields inherited from class com.atlassian.bamboo.specs.api.builders.trigger.Trigger
conditions, description, name, triggerEnabled
-
Constructor Summary
ConstructorDescriptionAnyTrigger
(@NotNull AtlassianModule atlassianModule) Specifies a trigger of given type.AnyTrigger
(@NotNull AnyTrigger other) -
Method Summary
Modifier and TypeMethodDescriptionprotected AnyTriggerProperties
build()
configuration
(Map<String, String> configuration) Appends the generic configuration to the trigger.Methods inherited from class com.atlassian.bamboo.specs.api.builders.trigger.RepositoryBasedTrigger
allAvailableTriggeringRepositories, selectedTriggeringRepositories, triggeringRepositoriesType
Methods inherited from class com.atlassian.bamboo.specs.api.builders.trigger.Trigger
conditions, description, enabled, name
-
Constructor Details
-
AnyTrigger
public AnyTrigger(@NotNull @NotNull AtlassianModule atlassianModule) throws PropertiesValidationException Specifies a trigger of given type.- Parameters:
atlassianModule
- type of the trigger identified by its plugin module key- Throws:
PropertiesValidationException
- See Also:
-
AnyTrigger
- Throws:
PropertiesValidationException
-
-
Method Details
-
configuration
Appends the generic configuration to the trigger.Trigger configuration typically contains data like: polling period, cron expression etc.
The configuration should be in the format used by respective plugin. No syntactical nor semantic validation is performed on the source data. The configuration is stored 'as is' in the Bamboo DB.
-
build
- Specified by:
build
in classTrigger<AnyTrigger,
AnyTriggerProperties> - Throws:
PropertiesValidationException
-