public class GithubBuildNotifier extends Object implements BuildNotifier
| Constructor and Description |
|---|
GithubBuildNotifier(org.kohsuke.github.GHRepository repository,
String shaString,
String targetUrl)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled()
Determine whether notifier is enabled
|
void |
notifyBuildStageStatus(String jobName,
String nodeName,
BuildState buildState,
long nodeDuration)
Send stage status notification to github
|
void |
notifyBuildState(String jobName,
String nodeName,
BuildState buildState)
Send stage status notification to github
|
void |
notifyFinalBuildStatus(String jobName,
BuildState buildState,
long buildDuration)
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.
|
public boolean isEnabled()
isEnabled in interface BuildNotifierpublic void notifyBuildState(String jobName, String nodeName, BuildState buildState)
notifyBuildState in interface BuildNotifiernodeName - the node that has changedbuildState - the new statejobName - the name of the jobpublic void notifyBuildStageStatus(String jobName, String nodeName, BuildState buildState, long nodeDuration)
notifyBuildStageStatus in interface BuildNotifiernodeName - the stage namebuildState - the build statusnodeDuration - elapsed time for this nodejobName - the name of the jobpublic void notifyFinalBuildStatus(String jobName, BuildState buildState, long buildDuration)
notifyFinalBuildStatus in interface BuildNotifierjobName - the name of the jobbuildState - state indicating success or failurebuildDuration - the build durationpublic void sendNonStageError(String jobName, String nodeName)
sendNonStageError in interface BuildNotifierjobName - the name of the jobnodeName - the name of the node that failedCopyright © 2016–2018. All rights reserved.