public interface BuildNotifier
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled()
Determine whether notifier is enabled.
|
void |
notifyBuildStageStatus(String jobName,
String nodeName,
BuildState buildState,
long nodeDuration)
Send a state change with timing info
|
void |
notifyBuildState(String jobName,
String nodeName,
BuildState buildState)
Send a state change, such as from Pending to Success or Pending to Error.
|
void |
notifyFinalBuildStatus(String jobName,
BuildState buildState,
long buildDuration,
long blockedDuration)
Send a notification when the job is complete
|
void |
sendNonStageError(String jobName,
String nodeName)
Sends a notification for an error regardless of whether initial pending
status was sent.
|
boolean isEnabled()
void notifyBuildState(String jobName, String nodeName, BuildState buildState)
jobName - the name of the job.nodeName - the node that has changed.buildState - the new state.void notifyBuildStageStatus(String jobName, String nodeName, BuildState buildState, long nodeDuration)
jobName - the name of the jobnodeName - the node that has changedbuildState - the new statenodeDuration - elapsed time for this nodevoid notifyFinalBuildStatus(String jobName, BuildState buildState, long buildDuration, long blockedDuration)
jobName - the name of the jobbuildState - state indicating success or failurebuildDuration - the build durationblockedDuration - time build was blocked before runningvoid sendNonStageError(String jobName, String nodeName)
jobName - the name of the jobnodeName - the name of the node that failedCopyright © 2016–2019. All rights reserved.