Class BuildNotifier
java.lang.Object
org.jenkinsci.plugins.githubautostatus.notifiers.BuildNotifier
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
GithubBuildNotifier,HttpNotifier,InfluxDbNotifier,StatsdNotifier
A notification subscriber which can send build stats to a particular sink.
- Author:
- Jeff Pearce (GitHub jeffpearce)
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longEstablishing a default long for use in getLong.protected static final StringEstablishing a default string for use in notifiers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<BuildNotifier> all()longabstract booleanDetermines whether this notifier is enabled.abstract voidnotifyBuildStageStatus(String jobName, BuildStage stageItem) Sends a state change with timing info.abstract voidnotifyFinalBuildStatus(BuildStage.State buildState, Map<String, Object> parameters) Sends a notification when a job is complete.booleanGet whether the notifier wants to know about errors that happen outside of a stage.
-
Field Details
-
DEFAULT_LONG
protected static final long DEFAULT_LONGEstablishing a default long for use in getLong.- See Also:
-
DEFAULT_STRING
Establishing a default string for use in notifiers.- See Also:
-
-
Constructor Details
-
BuildNotifier
public BuildNotifier()
-
-
Method Details
-
isEnabled
public abstract boolean isEnabled()Determines whether this notifier is enabled.- Returns:
- true if enabled; false otherwise
-
notifyBuildStageStatus
Sends a state change with timing info.- Parameters:
jobName- the name of the jobstageItem- stage item
-
notifyFinalBuildStatus
public abstract void notifyFinalBuildStatus(BuildStage.State buildState, Map<String, Object> parameters) Sends a notification when a job is complete.- Parameters:
buildState- state indicating success or failureparameters- build parameters
-
wantsOutOfStageErrors
public boolean wantsOutOfStageErrors()Get whether the notifier wants to know about errors that happen outside of a stage.- Returns:
- whether the notifier wants to know about errors that happen outside of a stage
-
all
-
getLong
-