Class Trigger<T extends Trigger<T,P>,P extends TriggerProperties>
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.trigger.Trigger<T,P>
- Direct Known Subclasses:
AfterDeploymentTrigger
,AfterSuccessfulBuildPlanTrigger
,AfterSuccessfulDeploymentTrigger
,AfterSuccessfulStageTrigger
,RepositoryBasedTrigger
,ScheduledDeploymentTrigger
,ScheduledTrigger
,TagTrigger
public abstract class Trigger<T extends Trigger<T,P>,P extends TriggerProperties>
extends EntityPropertiesBuilder<P>
Represents a definition of trigger.
This class contains common data only. In order to define a specific type of trigger one should use the specialised
implementation or, if such is not available, AnyTrigger
class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set
<TriggerConditionProperties> protected String
protected String
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract P
build()
conditions
(TriggerCondition<? extends TriggerCondition<?, ?>, ? extends TriggerConditionProperties>... conditions) description
(String description) Sets the trigger description.enabled
(boolean taskEnabled) Enables/disables the trigger.Sets the name of this trigger.
-
Field Details
-
triggerEnabled
protected boolean triggerEnabled -
name
-
description
-
conditions
-
-
Constructor Details
-
Trigger
protected Trigger()
-
-
Method Details
-
name
Sets the name of this trigger. Used as an visual identifier in Bamboo UI.The name property must be specified by user
-
description
Sets the trigger description. Defaults to empty value. -
enabled
Enables/disables the trigger. Defaults to enabled state. -
conditions
public T conditions(TriggerCondition<? extends TriggerCondition<?, ?>, ? extends TriggerConditionProperties>... conditions) -
build
- Specified by:
build
in classEntityPropertiesBuilder<P extends TriggerProperties>
-