public class HttpNotifier extends BuildNotifier
Modifier and Type | Field and Description |
---|---|
protected String |
authorization |
protected String |
branchName |
protected HttpNotifierConfig |
config |
protected com.google.gson.Gson |
gson |
protected String |
repoName |
protected String |
repoOwner |
protected Map<String,BuildStage> |
stageMap |
DEFAULT_LONG, DEFAULT_STRING
Constructor and Description |
---|
HttpNotifier(HttpNotifierConfig config) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled()
Determines whether this notifier is enabled.
|
void |
notifyBuildStageStatus(String jobName,
BuildStage stageItem)
Sends a state change with timing info.
|
void |
notifyFinalBuildStatus(BuildStage.State buildState,
Map<String,Object> parameters)
Sends a notification when a job is complete.
|
all, getLong, wantsOutOfStageErrors
protected String repoOwner
protected String repoName
protected String branchName
protected HttpNotifierConfig config
protected String authorization
protected Map<String,BuildStage> stageMap
protected com.google.gson.Gson gson
public HttpNotifier(HttpNotifierConfig config)
public boolean isEnabled()
BuildNotifier
isEnabled
in class BuildNotifier
public void notifyBuildStageStatus(String jobName, BuildStage stageItem)
BuildNotifier
notifyBuildStageStatus
in class BuildNotifier
jobName
- the name of the jobstageItem
- stage itempublic void notifyFinalBuildStatus(BuildStage.State buildState, Map<String,Object> parameters)
BuildNotifier
notifyFinalBuildStatus
in class BuildNotifier
buildState
- state indicating success or failureparameters
- build parametersCopyright © 2016–2020. All rights reserved.