public abstract class BuildNotifier extends Object implements hudson.ExtensionPoint
Modifier and Type | Field and Description |
---|---|
protected long |
DEFAULT_LONG
Establishing a default long for use in getLong.
|
protected String |
DEFAULT_STRING
Establishing a default string for use in notifiers.
|
Constructor and Description |
---|
BuildNotifier() |
Modifier and Type | Method and Description |
---|---|
static hudson.ExtensionList<BuildNotifier> |
all() |
long |
getLong(Map<String,Object> map,
String mapKey) |
abstract boolean |
isEnabled()
Determines whether this notifier is enabled.
|
abstract void |
notifyBuildStageStatus(String jobName,
BuildStage stageItem)
Sends a state change with timing info.
|
abstract void |
notifyFinalBuildStatus(BuildStage.State buildState,
Map<String,Object> parameters)
Sends a notification when a job is complete.
|
boolean |
wantsOutOfStageErrors()
Get whether the notifier wants to know about errors that happen outside of a stage.
|
protected final long DEFAULT_LONG
protected final String DEFAULT_STRING
public abstract boolean isEnabled()
public abstract void notifyBuildStageStatus(String jobName, BuildStage stageItem)
jobName
- the name of the jobstageItem
- stage itempublic abstract void notifyFinalBuildStatus(BuildStage.State buildState, Map<String,Object> parameters)
buildState
- state indicating success or failureparameters
- build parameterspublic boolean wantsOutOfStageErrors()
public static hudson.ExtensionList<BuildNotifier> all()
Copyright © 2016–2020. All rights reserved.