public class BuildNotifierManager extends Object
Modifier and Type | Method and Description |
---|---|
BuildNotifier |
addGenericNotifier(BuildNotifier buildNotifier) |
BuildNotifier |
addGithubNotifier(GithubNotificationConfig config)
Adds a GitHub repository for notifications.
|
BuildNotifier |
addHttpNotifier(HttpNotifierConfig httpNotifierConfig)
Adds an HTTP notifier.
|
BuildNotifier |
addInfluxDbNotifier(InfluxDbNotifierConfig influxDbNotifierConfig)
Adds an InfluxDB notifier.
|
BuildNotifier |
addStatsdBuildNotifier(StatsdNotifierConfig statsdNotifierConfig)
Adds a StatsD notifier.
|
static BuildNotifierManager |
newInstance(String jobName,
String targetUrl) |
void |
notifyBuildStageStatus(BuildStage stageItem)
Sends stage status notification.
|
void |
notifyFinalBuildStatus(BuildStage.State buildState,
Map<String,Object> parameters)
Sends overall build status notification.
|
void |
sendNonStageError(BuildStage stageItem)
Sends a notification for an error regardless of whether initial pending
status was sent.
|
public static BuildNotifierManager newInstance(String jobName, String targetUrl)
public BuildNotifier addGithubNotifier(GithubNotificationConfig config)
config
- GitHub notification configurationpublic BuildNotifier addInfluxDbNotifier(InfluxDbNotifierConfig influxDbNotifierConfig)
influxDbNotifierConfig
- InfluxDB notification configurationpublic BuildNotifier addHttpNotifier(HttpNotifierConfig httpNotifierConfig)
httpNotifierConfig
- HTTP notification configurationpublic BuildNotifier addGenericNotifier(BuildNotifier buildNotifier)
public BuildNotifier addStatsdBuildNotifier(StatsdNotifierConfig statsdNotifierConfig)
statsdNotifierConfig
- StatsD notification configurationpublic void notifyBuildStageStatus(BuildStage stageItem)
stageItem
- stage itempublic void notifyFinalBuildStatus(BuildStage.State buildState, Map<String,Object> parameters)
buildState
- the build statusparameters
- build parameterspublic void sendNonStageError(BuildStage stageItem)
stageItem
- stage itemCopyright © 2016–2020. All rights reserved.