public class AnyTrigger extends RepositoryBasedTrigger<AnyTrigger,AnyTriggerProperties>
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.
RepositoryBasedTrigger.TriggeringRepositoriesTypeselectedTriggeringRepositories, triggeringRepositoriesTypedescription, name, triggerEnabled| Constructor and Description |
|---|
AnyTrigger(AnyTrigger other) |
AnyTrigger(AtlassianModule atlassianModule)
Specifies a trigger of given type.
|
| Modifier and Type | Method and Description |
|---|---|
protected AnyTriggerProperties |
build() |
AnyTrigger |
configuration(Map<String,String> configuration)
Appends the generic configuration to the trigger.
|
allAvailableTriggeringRepositories, selectedTriggeringRepositories, triggeringRepositoriesTypedescription, enabled, namepublic AnyTrigger(@NotNull
AtlassianModule atlassianModule)
throws PropertiesValidationException
atlassianModule - type of the trigger identified by its plugin module keyPropertiesValidationExceptionAtlassianModulepublic AnyTrigger(@NotNull
AnyTrigger other)
throws PropertiesValidationException
PropertiesValidationExceptionpublic AnyTrigger configuration(Map<String,String> configuration)
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.
protected AnyTriggerProperties build() throws PropertiesValidationException
build in class Trigger<AnyTrigger,AnyTriggerProperties>PropertiesValidationExceptionCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.