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.TriggeringRepositoriesType
selectedTriggeringRepositories, triggeringRepositoriesType
conditions, description, 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, triggeringRepositoriesType
conditions, description, enabled, name
public AnyTrigger(@NotNull AtlassianModule atlassianModule) throws PropertiesValidationException
atlassianModule
- type of the trigger identified by its plugin module keyPropertiesValidationException
AtlassianModule
public AnyTrigger(@NotNull AnyTrigger other) throws PropertiesValidationException
PropertiesValidationException
public 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>
PropertiesValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.