public class BuildNotifierManager extends Object
| Constructor and Description |
|---|
BuildNotifierManager(String jobName,
String targetUrl)
Constructs a BuildNotifierManager
|
| Modifier and Type | Method and Description |
|---|---|
BuildNotifier |
addGithubNotifier(GithubNotificationConfig config)
Adds a Github repository for notifications
|
BuildNotifier |
addInfluxDbNotifier(InfluxDbNotifierConfig influxDbNotifierConfig)
Adds an influx DB notifier
|
void |
notifyBuildStageStatus(String stageName,
BuildState buildState,
long nodeDuration)
Send stage status notification
|
void |
notifyFinalBuildStatus(BuildState buildState,
long buildDuration)
Send overall build status notification
|
void |
sendNonStageError(String nodeName)
Sends a notification for an error regardless of whether initial pending
status was sent.
|
public BuildNotifier addGithubNotifier(GithubNotificationConfig config)
config - Github notification configurationpublic BuildNotifier addInfluxDbNotifier(InfluxDbNotifierConfig influxDbNotifierConfig)
influxDbNotifierConfig - influx db notification configurationpublic void notifyBuildStageStatus(String stageName, BuildState buildState, long nodeDuration)
stageName - the stage namebuildState - the build statusnodeDuration - elapsed time for this nodepublic void notifyFinalBuildStatus(BuildState buildState, long buildDuration)
buildState - the build statusbuildDuration - elapsed time for this buildpublic void sendNonStageError(String nodeName)
nodeName - the name of the node that failedCopyright © 2016–2018. All rights reserved.