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() |
hudson.util.Secret |
getEndpoint() |
String |
getIcon() |
boolean |
getIncludeCustomAttachmentMessage() |
boolean |
getIncludeCustomMessage() |
boolean |
getIncludeTestSummary() |
boolean |
getNotifyAborted() |
boolean |
getNotifyBackToNormal() |
boolean |
getNotifyFailure() |
boolean |
getNotifyNotBuilt() |
boolean |
getNotifyRepeatedFailure() |
boolean |
getNotifySuccess() |
boolean |
getNotifyUnstable() |
hudson.util.Secret |
getProxyPassword() |
int |
getProxyPort() |
String |
getProxyServer() |
String |
getProxyUsername() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getRoom() |
String |
getSendAs() |
boolean |
getStartNotification() |
boolean |
isUseCustomProxy() |
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 |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(int proxyPort) |
void |
setProxyServer(String proxyServer) |
void |
setProxyUsername(String proxyUsername) |
void |
setRoom(String room) |
void |
setSendAs(String sendAs) |
void |
setStartNotification(boolean startNotification) |
void |
setUseCustomProxy(boolean useCustomProxy) |
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.Notifier
public hudson.util.Secret getEndpoint()
public String getRoom()
public String getIcon()
public String getBuildServerUrl()
public boolean isUseCustomProxy()
public hudson.util.Secret getProxyPassword()
public String getProxyUsername()
public String getProxyServer()
public int getProxyPort()
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(String endpoint)
public void setProxyPassword(String proxyPassword)
@DataBoundSetter public void setUseCustomProxy(boolean useCustomProxy)
@DataBoundSetter public void setProxyUsername(String proxyUsername)
@DataBoundSetter public void setProxyServer(String proxyServer)
@DataBoundSetter public void setProxyPort(int proxyPort)
@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.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public boolean prebuild(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
prebuild
in interface hudson.tasks.BuildStep
prebuild
in class hudson.tasks.BuildStepCompatibilityLayer
Copyright © 2016–2023. All rights reserved.