Class AbstractTriggerReason
java.lang.Object
com.atlassian.bamboo.v2.build.trigger.AbstractTriggerReason
- All Implemented Interfaces:
TriggerReason
,Serializable
- Direct Known Subclasses:
ChildDependencyTriggerReason
,CodeChangedTriggerReason
,CompletedStageTriggerReason
,DependencyTriggerReason
,EnvironmentDependencyTriggerReason
,InitialBuildTriggerReason
,JIRAReleaseTriggerReason
,ManualBuildTriggerReason
,RssChangedTriggerReason
,ScheduledTriggerReason
,TagBuildTriggerReason
,UnknownTriggerReason
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull TriggerReason
getChildTriggerReason
(BuildContext child, ImmutablePlan plan) If build A (triggered because of this TriggerReason) caused builds of plans X,Y,Z to trigger, this method will be called to determine trigger reasons for plans X, Y, Z.getKey()
TheTriggerReason
keyprotected void
toString()
protected void
updateIfValueNotNull
(BambooCustomDataAware customDataAware, String key, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.v2.build.trigger.TriggerReason
getName, getNameForSentence, init, init, updateCustomData
-
Field Details
-
TRIGGER_REASON_KEY
- See Also:
-
PLUGIN_KEY
- See Also:
-
-
Constructor Details
-
AbstractTriggerReason
public AbstractTriggerReason()
-
-
Method Details
-
getKey
Description copied from interface:TriggerReason
TheTriggerReason
key- Specified by:
getKey
in interfaceTriggerReason
- Returns:
- key
-
getChildTriggerReason
@NotNull public @NotNull TriggerReason getChildTriggerReason(BuildContext child, ImmutablePlan plan) Description copied from interface:TriggerReason
If build A (triggered because of this TriggerReason) caused builds of plans X,Y,Z to trigger, this method will be called to determine trigger reasons for plans X, Y, Z.- Specified by:
getChildTriggerReason
in interfaceTriggerReason
- Returns:
-
toString
-
init
-
updateIfValueNotNull
protected void updateIfValueNotNull(BambooCustomDataAware customDataAware, String key, String value)
-