Package jenkins.plugins.mattermost
Class MattermostNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
jenkins.plugins.mattermost.MattermostNotifier
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classDeprecated.static final classNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionMattermostNotifier(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 Summary
Modifier and TypeMethodDescriptiongetIcon()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintgetRoom()booleanbooleannewMattermostService(AbstractBuild r, BuildListener listener) booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) booleanprebuild(AbstractBuild<?, ?> build, BuildListener listener) voidsetBuildServerUrl(String buildServerUrl) voidsetCommitInfoChoice(CommitInfoChoice commitInfoChoice) voidsetCustomAttachmentMessage(String customAttachmentMessage) voidsetCustomMessage(String customMessage) voidsetEndpoint(String endpoint) voidvoidsetIncludeCustomAttachmentMessage(boolean includeCustomAttachmentMessage) voidsetIncludeCustomMessage(boolean includeCustomMessage) voidsetIncludeTestSummary(boolean includeTestSummary) voidsetNotifyAborted(boolean notifyAborted) voidsetNotifyBackToNormal(boolean notifyBackToNormal) voidsetNotifyFailure(boolean notifyFailure) voidsetNotifyNotBuilt(boolean notifyNotBuilt) voidsetNotifyRepeatedFailure(boolean notifyRepeatedFailure) voidsetNotifySuccess(boolean notifySuccess) voidsetNotifyUnstable(boolean notifyUnstable) voidsetProxyPassword(String proxyPassword) voidsetProxyPort(int proxyPort) voidsetProxyServer(String proxyServer) voidsetProxyUsername(String proxyUsername) voidvoidvoidsetStartNotification(boolean startNotification) voidsetUseCustomProxy(boolean useCustomProxy) Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform
-
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
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classNotifier
-
getEndpoint
-
getRoom
-
getIcon
-
getBuildServerUrl
-
isUseCustomProxy
public boolean isUseCustomProxy() -
getProxyPassword
-
getProxyUsername
-
getProxyServer
-
getProxyPort
public int getProxyPort() -
getSendAs
-
getStartNotification
public boolean getStartNotification() -
getNotifySuccess
public boolean getNotifySuccess() -
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
-
getIncludeCustomMessage
public boolean getIncludeCustomMessage() -
getCustomMessage
-
setEndpoint
-
setProxyPassword
-
setUseCustomProxy
@DataBoundSetter public void setUseCustomProxy(boolean useCustomProxy) -
setProxyUsername
-
setProxyServer
-
setProxyPort
@DataBoundSetter public void setProxyPort(int proxyPort) -
setRoom
-
setIcon
-
setBuildServerUrl
-
setSendAs
-
setStartNotification
@DataBoundSetter public void setStartNotification(boolean startNotification) -
setNotifySuccess
@DataBoundSetter public void setNotifySuccess(boolean notifySuccess) -
setCommitInfoChoice
-
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
-
getRequiredMonitorService
-
newMattermostService
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
prebuild
- Specified by:
prebuildin interfaceBuildStep- Overrides:
prebuildin classBuildStepCompatibilityLayer
-