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
public abstract class AbstractTriggerReason extends Object implements TriggerReason
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringPLUGIN_KEYstatic StringTRIGGER_REASON_KEY
-
Constructor Summary
Constructors Constructor Description AbstractTriggerReason()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @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.StringgetKey()TheTriggerReasonkeyprotected voidinit(String key)StringtoString()protected voidupdateIfValueNotNull(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 Detail
-
TRIGGER_REASON_KEY
public static final String TRIGGER_REASON_KEY
- See Also:
- Constant Field Values
-
PLUGIN_KEY
protected static final String PLUGIN_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
public String 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:
-
init
protected void init(String key)
-
updateIfValueNotNull
protected void updateIfValueNotNull(BambooCustomDataAware customDataAware, String key, String value)
-
-