public class MattermostNotifier
extends hudson.tasks.Notifier
| Modifier and Type | Class and Description |
|---|---|
static class |
MattermostNotifier.DescriptorImpl |
static class |
MattermostNotifier.MattermostJobProperty
Deprecated.
|
static class |
MattermostNotifier.Migrator |
hudson.tasks.Publisher.DescriptorExtensionListImpl| Constructor and Description |
|---|
MattermostNotifier(String endpoint,
String room,
String icon,
String buildServerUrl,
String sendAs,
boolean startNotification,
boolean notifyAborted,
boolean notifyFailure,
boolean notifyNotBuilt,
boolean notifySuccess,
boolean notifyUnstable,
boolean notifyBackToNormal,
boolean notifyRepeatedFailure,
boolean includeTestSummary,
CommitInfoChoice commitInfoChoice,
boolean includeCustomAttachmentMessage,
String customAttachmentMessage,
boolean includeCustomMessage,
String customMessage) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBuildServerUrl() |
CommitInfoChoice |
getCommitInfoChoice() |
String |
getCustomAttachmentMessage() |
String |
getCustomMessage() |
MattermostNotifier.DescriptorImpl |
getDescriptor() |
String |
getEndpoint() |
String |
getIcon() |
boolean |
getIncludeCustomAttachmentMessage() |
boolean |
getIncludeCustomMessage() |
boolean |
getIncludeTestSummary() |
boolean |
getNotifyAborted() |
boolean |
getNotifyBackToNormal() |
boolean |
getNotifyFailure() |
boolean |
getNotifyNotBuilt() |
boolean |
getNotifyRepeatedFailure() |
boolean |
getNotifySuccess() |
boolean |
getNotifyUnstable() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getRoom() |
String |
getSendAs() |
boolean |
getStartNotification() |
MattermostService |
newMattermostService(hudson.model.AbstractBuild r,
hudson.model.BuildListener listener) |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener) |
void |
setBuildServerUrl(String buildServerUrl) |
void |
setCommitInfoChoice(CommitInfoChoice commitInfoChoice) |
void |
setCustomAttachmentMessage(String customAttachmentMessage) |
void |
setCustomMessage(String customMessage) |
void |
setEndpoint(String endpoint) |
void |
setIcon(String icon) |
void |
setIncludeCustomAttachmentMessage(boolean includeCustomAttachmentMessage) |
void |
setIncludeCustomMessage(boolean includeCustomMessage) |
void |
setIncludeTestSummary(boolean includeTestSummary) |
void |
setNotifyAborted(boolean notifyAborted) |
void |
setNotifyBackToNormal(boolean notifyBackToNormal) |
void |
setNotifyFailure(boolean notifyFailure) |
void |
setNotifyNotBuilt(boolean notifyNotBuilt) |
void |
setNotifyRepeatedFailure(boolean notifyRepeatedFailure) |
void |
setNotifySuccess(boolean notifySuccess) |
void |
setNotifyUnstable(boolean notifyUnstable) |
void |
setRoom(String room) |
void |
setSendAs(String sendAs) |
void |
setStartNotification(boolean startNotification) |
all, getProjectAction, needsToRunAfterFinalized, prebuild@DataBoundConstructor public MattermostNotifier(String endpoint, String room, String icon, String buildServerUrl, String sendAs, boolean startNotification, boolean notifyAborted, boolean notifyFailure, boolean notifyNotBuilt, boolean notifySuccess, boolean notifyUnstable, boolean notifyBackToNormal, boolean notifyRepeatedFailure, boolean includeTestSummary, CommitInfoChoice commitInfoChoice, boolean includeCustomAttachmentMessage, String customAttachmentMessage, boolean includeCustomMessage, String customMessage)
public MattermostNotifier.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Notifierpublic String getEndpoint()
public String getRoom()
public String getIcon()
public String getBuildServerUrl()
public String getSendAs()
public boolean getStartNotification()
public boolean getNotifySuccess()
public CommitInfoChoice getCommitInfoChoice()
public boolean getNotifyAborted()
public boolean getNotifyFailure()
public boolean getNotifyNotBuilt()
public boolean getNotifyUnstable()
public boolean getNotifyBackToNormal()
public boolean getIncludeTestSummary()
public boolean getNotifyRepeatedFailure()
public boolean getIncludeCustomAttachmentMessage()
public String getCustomAttachmentMessage()
public boolean getIncludeCustomMessage()
public String getCustomMessage()
public void setEndpoint(@CheckForNull String endpoint)
@DataBoundSetter public void setRoom(@CheckForNull String room)
@DataBoundSetter public void setIcon(@CheckForNull String icon)
@DataBoundSetter public void setBuildServerUrl(@CheckForNull String buildServerUrl)
@DataBoundSetter public void setSendAs(@CheckForNull String sendAs)
@DataBoundSetter public void setStartNotification(boolean startNotification)
@DataBoundSetter public void setNotifySuccess(boolean notifySuccess)
@DataBoundSetter public void setCommitInfoChoice(CommitInfoChoice commitInfoChoice)
@DataBoundSetter public void setNotifyAborted(boolean notifyAborted)
@DataBoundSetter public void setNotifyFailure(boolean notifyFailure)
@DataBoundSetter public void setNotifyNotBuilt(boolean notifyNotBuilt)
@DataBoundSetter public void setNotifyUnstable(boolean notifyUnstable)
@DataBoundSetter public void setNotifyBackToNormal(boolean notifyBackToNormal)
@DataBoundSetter public void setIncludeTestSummary(boolean includeTestSummary)
@DataBoundSetter public void setNotifyRepeatedFailure(boolean notifyRepeatedFailure)
@DataBoundSetter public void setIncludeCustomAttachmentMessage(boolean includeCustomAttachmentMessage)
@DataBoundSetter public void setCustomAttachmentMessage(@CheckForNull String customAttachmentMessage)
@DataBoundSetter public void setIncludeCustomMessage(boolean includeCustomMessage)
@DataBoundSetter public void setCustomMessage(@CheckForNull String customMessage)
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public MattermostService newMattermostService(hudson.model.AbstractBuild r, hudson.model.BuildListener listener)
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic boolean prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
prebuild in interface hudson.tasks.BuildStepprebuild in class hudson.tasks.BuildStepCompatibilityLayerCopyright © 2016–2019. All rights reserved.