Class MattermostNotifier

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep

public class MattermostNotifier extends Notifier
  • Constructor Details

    • MattermostNotifier

      @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)
  • Method Details

    • getDescriptor

      public MattermostNotifier.DescriptorImpl getDescriptor()
      Specified by:
      getDescriptor in interface Describable<Publisher>
      Overrides:
      getDescriptor in class Notifier
    • getEndpoint

      public Secret getEndpoint()
    • getRoom

      public String getRoom()
    • getIcon

      public String getIcon()
    • getBuildServerUrl

      public String getBuildServerUrl()
    • isUseCustomProxy

      public boolean isUseCustomProxy()
    • getProxyPassword

      public Secret getProxyPassword()
    • getProxyUsername

      public String getProxyUsername()
    • getProxyServer

      public String getProxyServer()
    • getProxyPort

      public int getProxyPort()
    • getSendAs

      public String getSendAs()
    • getStartNotification

      public boolean getStartNotification()
    • getNotifySuccess

      public boolean getNotifySuccess()
    • getCommitInfoChoice

      public CommitInfoChoice getCommitInfoChoice()
    • getNotifyAborted

      public boolean getNotifyAborted()
    • getNotifyFailure

      public boolean getNotifyFailure()
    • getNotifyNotBuilt

      public boolean getNotifyNotBuilt()
    • getNotifyUnstable

      public boolean getNotifyUnstable()
    • getNotifyBackToNormal

      public boolean getNotifyBackToNormal()
    • getIncludeTestSummary

      public boolean getIncludeTestSummary()
    • getNotifyRepeatedFailure

      public boolean getNotifyRepeatedFailure()
    • getIncludeCustomAttachmentMessage

      public boolean getIncludeCustomAttachmentMessage()
    • getCustomAttachmentMessage

      public String getCustomAttachmentMessage()
    • getIncludeCustomMessage

      public boolean getIncludeCustomMessage()
    • getCustomMessage

      public String getCustomMessage()
    • setEndpoint

      public void setEndpoint(String endpoint)
    • setProxyPassword

      public void setProxyPassword(String proxyPassword)
    • setUseCustomProxy

      @DataBoundSetter public void setUseCustomProxy(boolean useCustomProxy)
    • setProxyUsername

      @DataBoundSetter public void setProxyUsername(String proxyUsername)
    • setProxyServer

      @DataBoundSetter public void setProxyServer(String proxyServer)
    • setProxyPort

      @DataBoundSetter public void setProxyPort(int proxyPort)
    • setRoom

      @DataBoundSetter public void setRoom(@CheckForNull String room)
    • setIcon

      @DataBoundSetter public void setIcon(@CheckForNull String icon)
    • setBuildServerUrl

      @DataBoundSetter public void setBuildServerUrl(@CheckForNull String buildServerUrl)
    • setSendAs

      @DataBoundSetter public void setSendAs(@CheckForNull String sendAs)
    • setStartNotification

      @DataBoundSetter public void setStartNotification(boolean startNotification)
    • setNotifySuccess

      @DataBoundSetter public void setNotifySuccess(boolean notifySuccess)
    • setCommitInfoChoice

      @DataBoundSetter public void setCommitInfoChoice(CommitInfoChoice commitInfoChoice)
    • setNotifyAborted

      @DataBoundSetter public void setNotifyAborted(boolean notifyAborted)
    • setNotifyFailure

      @DataBoundSetter public void setNotifyFailure(boolean notifyFailure)
    • setNotifyNotBuilt

      @DataBoundSetter public void setNotifyNotBuilt(boolean notifyNotBuilt)
    • setNotifyUnstable

      @DataBoundSetter public void setNotifyUnstable(boolean notifyUnstable)
    • setNotifyBackToNormal

      @DataBoundSetter public void setNotifyBackToNormal(boolean notifyBackToNormal)
    • setIncludeTestSummary

      @DataBoundSetter public void setIncludeTestSummary(boolean includeTestSummary)
    • setNotifyRepeatedFailure

      @DataBoundSetter public void setNotifyRepeatedFailure(boolean notifyRepeatedFailure)
    • setIncludeCustomAttachmentMessage

      @DataBoundSetter public void setIncludeCustomAttachmentMessage(boolean includeCustomAttachmentMessage)
    • setCustomAttachmentMessage

      @DataBoundSetter public void setCustomAttachmentMessage(@CheckForNull String customAttachmentMessage)
    • setIncludeCustomMessage

      @DataBoundSetter public void setIncludeCustomMessage(boolean includeCustomMessage)
    • setCustomMessage

      @DataBoundSetter public void setCustomMessage(@CheckForNull String customMessage)
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
    • newMattermostService

      public MattermostService newMattermostService(AbstractBuild r, BuildListener listener)
    • perform

      public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
      Specified by:
      perform in interface BuildStep
      Overrides:
      perform in class BuildStepCompatibilityLayer
      Throws:
      InterruptedException
      IOException
    • prebuild

      public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
      Specified by:
      prebuild in interface BuildStep
      Overrides:
      prebuild in class BuildStepCompatibilityLayer