public class CompletedStageTriggerReason extends AbstractTriggerReason implements TriggerReason, BuildResultTriggerReason
Modifier and Type | Field and Description |
---|---|
static String |
KEY |
static String |
TRIGGER_BUILD_RESULT_KEY |
static String |
TRIGGER_STAGE_NAME_KEY |
PLUGIN_KEY, textProvider
Constructor and Description |
---|
CompletedStageTriggerReason() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gives the trigger reason
|
String |
getNameForSentence()
Gives the trigger reason in a format that can be used in a sentence
eg.
|
String |
getTriggeringBuildResultKey() |
String |
getTriggeringStageName() |
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 |
setTriggeringBuildResultKey(String triggeringBuildResultKey) |
void |
setTriggeringStageName(String triggeringStageName) |
void |
updateCustomData(BambooCustomDataAware customDataAware)
Updates the
TriggerReason given a BambooCustomDataAware |
getChildTriggerReason, getKey, init, setTextProvider, toString, updateIfValueNotNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildTriggerReason, getKey
public static final String KEY
public static final String TRIGGER_BUILD_RESULT_KEY
public static final String TRIGGER_STAGE_NAME_KEY
public String getName()
TriggerReason
getName
in interface TriggerReason
public String getNameForSentence()
TriggerReason
getNameForSentence
in interface TriggerReason
public void init(String key, Map<String,String> fields)
TriggerReason
TriggerReason
using data from the Map
init
in interface TriggerReason
public void init(String key, @NotNull ResultsSummary resultsSummary)
TriggerReason
TriggerReason
using data from the ResultsSummary
init
in interface TriggerReason
public void updateCustomData(@NotNull BambooCustomDataAware customDataAware)
TriggerReason
TriggerReason
given a BambooCustomDataAware
updateCustomData
in interface TriggerReason
public String getTriggeringBuildResultKey()
getTriggeringBuildResultKey
in interface BuildResultTriggerReason
public void setTriggeringBuildResultKey(String triggeringBuildResultKey)
public String getTriggeringStageName()
public void setTriggeringStageName(String triggeringStageName)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.