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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull TriggerReasongetChildTriggerReason(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()TheTriggerReasonkeyprotected voidtoString()protected voidupdateIfValueNotNull(BambooCustomDataAware customDataAware, String key, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:TriggerReasonTheTriggerReasonkey- Specified by:
getKeyin interfaceTriggerReason- Returns:
- key
-
getChildTriggerReason
@NotNull public @NotNull TriggerReason getChildTriggerReason(BuildContext child, ImmutablePlan plan) Description copied from interface:TriggerReasonIf 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:
getChildTriggerReasonin interfaceTriggerReason- Returns:
-
toString
-
init
-
updateIfValueNotNull
protected void updateIfValueNotNull(BambooCustomDataAware customDataAware, String key, String value)
-