public interface TriggerReason extends Serializable
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getKey()
The
TriggerReason key |
String |
getName()
Gives the trigger reason
|
String |
getNameForSentence()
Gives the trigger reason in a format that can be used in a sentence
eg.
|
void |
init(String key,
Map<String,String> fields)
Initializes the
TriggerReason using data from the Map |
void |
init(String key,
ResultsSummary resultsSummary)
Initializes the
TriggerReason using data from the ResultsSummary |
void |
updateCustomData(BambooCustomDataAware customDataAware)
Updates the
TriggerReason given a BambooCustomDataAware |
void init(String key, Map<String,String> fields)
TriggerReason
using data from the Map
key
- fields
- void init(String key, @NotNull ResultsSummary resultsSummary)
TriggerReason
using data from the ResultsSummary
key
- resultsSummary
- void updateCustomData(@NotNull BambooCustomDataAware customDataAware)
TriggerReason
given a BambooCustomDataAware
customDataAware
- String getKey()
TriggerReason
keyString getName()
String getNameForSentence()
@NotNull TriggerReason getChildTriggerReason(BuildContext child, ImmutablePlan plan)
child
- plan
- Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.