Package jenkins.plugins.slack
Class SlackNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
jenkins.plugins.slack.SlackNotifier
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionSlackNotifier
(String baseUrl, String teamDomain, String authToken, boolean botUser, String room, String tokenCredentialId, String sendAs, boolean startNotification, boolean notifyAborted, boolean notifyFailure, boolean notifyNotBuilt, boolean notifySuccess, boolean notifyUnstable, boolean notifyRegression, boolean notifyBackToNormal, boolean notifyRepeatedFailure, boolean includeTestSummary, boolean includeFailedTests, CommitInfoChoice commitInfoChoice, boolean includeCustomMessage, String customMessage) Deprecated.SlackNotifier
(String baseUrl, String teamDomain, String authToken, boolean botUser, String room, String tokenCredentialId, String sendAs, boolean startNotification, boolean notifyAborted, boolean notifyFailure, boolean notifyNotBuilt, boolean notifySuccess, boolean notifyUnstable, boolean notifyRegression, boolean notifyBackToNormal, boolean notifyRepeatedFailure, boolean includeTestSummary, boolean includeFailedTests, CommitInfoChoice commitInfoChoice, boolean includeCustomMessage, String customMessage, String customMessageSuccess, String customMessageAborted, String customMessageNotBuilt, String customMessageUnstable, String customMessageFailure) Deprecated.SlackNotifier
(String baseUrl, String teamDomain, String authToken, boolean botUser, String room, String tokenCredentialId, String sendAs, boolean startNotification, boolean notifyAborted, boolean notifyFailure, boolean notifyNotBuilt, boolean notifySuccess, boolean notifyUnstable, boolean notifyRegression, boolean notifyBackToNormal, boolean notifyRepeatedFailure, boolean includeTestSummary, boolean includeFailedTests, MatrixTriggerMode matrixTriggerMode, CommitInfoChoice commitInfoChoice, boolean includeCustomMessage, String customMessage, String customMessageSuccess, String customMessageAborted, String customMessageNotBuilt, String customMessageUnstable, String customMessageFailure) Deprecated.SlackNotifier
(CommitInfoChoice commitInfoChoice) -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackNotifierBuilder
builder()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
getRoom()
boolean
boolean
boolean
boolean
boolean
isMatrixRun
(AbstractBuild<?, ?> build) boolean
newSlackService
(AbstractBuild abstractBuild, BuildListener listener) boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) boolean
prebuild
(AbstractBuild<?, ?> build, BuildListener listener) void
setArtifactIncludes
(String artifactIncludes) void
setAuthToken
(String authToken) void
setBaseUrl
(String baseUrl) void
setBotUser
(boolean botUser) void
setCommitInfoChoice
(CommitInfoChoice commitInfoChoice) void
setCustomMessage
(String customMessage) void
setCustomMessageAborted
(String customMessageAborted) void
setCustomMessageFailure
(String customMessageFailure) void
setCustomMessageNotBuilt
(String customMessageNotBuilt) void
setCustomMessageSuccess
(String customMessageSuccess) void
setCustomMessageUnstable
(String customMessageUnstable) void
setIconEmoji
(String iconEmoji) void
setIncludeCustomMessage
(boolean includeCustomMessage) void
setIncludeFailedTests
(boolean includeFailedTests) void
setIncludeTestSummary
(boolean includeTestSummary) void
setMatrixTriggerMode
(MatrixTriggerMode matrixTriggerMode) void
setNotifyAborted
(boolean notifyAborted) void
setNotifyBackToNormal
(boolean notifyBackToNormal) void
setNotifyEveryFailure
(boolean notifyEveryFailure) void
setNotifyFailure
(boolean notifyFailure) void
setNotifyNotBuilt
(boolean notifyNotBuilt) void
setNotifyRegression
(boolean notifyRegression) void
setNotifyRepeatedFailure
(boolean notifyRepeatedFailure) void
setNotifySuccess
(boolean notifySuccess) void
setNotifyUnstable
(boolean notifyUnstable) void
void
void
setSendAsText
(boolean sendAsText) void
setSlackUserIdResolver
(SlackUserIdResolver slackUserIdResolver) void
setStartNotification
(boolean startNotification) void
setTeamDomain
(String teamDomain) void
setTokenCredentialId
(String tokenCredentialId) void
setUploadFiles
(boolean uploadFiles) void
setUsername
(String username) Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform
-
Field Details
-
MATRIX_PROJECT_CLASS_NAME
- See Also:
-
MATRIX_RUN_CLASS_NAME
- See Also:
-
-
Constructor Details
-
SlackNotifier
-
SlackNotifier
@Deprecated public SlackNotifier(String baseUrl, String teamDomain, String authToken, boolean botUser, String room, String tokenCredentialId, String sendAs, boolean startNotification, boolean notifyAborted, boolean notifyFailure, boolean notifyNotBuilt, boolean notifySuccess, boolean notifyUnstable, boolean notifyRegression, boolean notifyBackToNormal, boolean notifyRepeatedFailure, boolean includeTestSummary, boolean includeFailedTests, CommitInfoChoice commitInfoChoice, boolean includeCustomMessage, String customMessage) Deprecated. -
SlackNotifier
@Deprecated public SlackNotifier(String baseUrl, String teamDomain, String authToken, boolean botUser, String room, String tokenCredentialId, String sendAs, boolean startNotification, boolean notifyAborted, boolean notifyFailure, boolean notifyNotBuilt, boolean notifySuccess, boolean notifyUnstable, boolean notifyRegression, boolean notifyBackToNormal, boolean notifyRepeatedFailure, boolean includeTestSummary, boolean includeFailedTests, CommitInfoChoice commitInfoChoice, boolean includeCustomMessage, String customMessage, String customMessageSuccess, String customMessageAborted, String customMessageNotBuilt, String customMessageUnstable, String customMessageFailure) Deprecated. -
SlackNotifier
@Deprecated public SlackNotifier(String baseUrl, String teamDomain, String authToken, boolean botUser, String room, String tokenCredentialId, String sendAs, boolean startNotification, boolean notifyAborted, boolean notifyFailure, boolean notifyNotBuilt, boolean notifySuccess, boolean notifyUnstable, boolean notifyRegression, boolean notifyBackToNormal, boolean notifyRepeatedFailure, boolean includeTestSummary, boolean includeFailedTests, MatrixTriggerMode matrixTriggerMode, CommitInfoChoice commitInfoChoice, boolean includeCustomMessage, String customMessage, String customMessageSuccess, String customMessageAborted, String customMessageNotBuilt, String customMessageUnstable, String customMessageFailure) Deprecated.
-
-
Method Details
-
getAuthTokenCredentialId
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
-
getBaseUrl
-
getTeamDomain
-
setTeamDomain
-
getRoom
-
setRoom
-
getAuthToken
-
setAuthToken
-
getTokenCredentialId
-
setTokenCredentialId
-
getBotUser
public boolean getBotUser() -
setBotUser
@DataBoundSetter public void setBotUser(boolean botUser) -
getSendAs
-
setSendAs
-
getSendAsText
public boolean getSendAsText() -
setSendAsText
@DataBoundSetter public void setSendAsText(boolean sendAsText) -
getIconEmoji
-
setIconEmoji
-
getUsername
-
setUsername
-
getStartNotification
public boolean getStartNotification() -
getNotifySuccess
public boolean getNotifySuccess() -
getCommitInfoChoice
-
getMatrixTriggerMode
-
getNotifyAborted
public boolean getNotifyAborted() -
getNotifyFailure
public boolean getNotifyFailure() -
getNotifyEveryFailure
public boolean getNotifyEveryFailure() -
getNotifyNotBuilt
public boolean getNotifyNotBuilt() -
getNotifyUnstable
public boolean getNotifyUnstable() -
getNotifyRegression
public boolean getNotifyRegression() -
getNotifyBackToNormal
public boolean getNotifyBackToNormal() -
getIncludeTestSummary
public boolean getIncludeTestSummary() -
getIncludeFailedTests
public boolean getIncludeFailedTests() -
getUploadFiles
public boolean getUploadFiles() -
getArtifactIncludes
-
getNotifyRepeatedFailure
public boolean getNotifyRepeatedFailure() -
getIncludeCustomMessage
public boolean getIncludeCustomMessage() -
getCustomMessage
-
getCustomMessageSuccess
-
getCustomMessageAborted
-
getCustomMessageNotBuilt
-
getCustomMessageUnstable
-
getCustomMessageFailure
-
getSlackUserIdResolver
-
setBaseUrl
-
setStartNotification
@DataBoundSetter public void setStartNotification(boolean startNotification) -
setNotifySuccess
@DataBoundSetter public void setNotifySuccess(boolean notifySuccess) -
setCommitInfoChoice
-
setMatrixTriggerMode
-
setNotifyAborted
@DataBoundSetter public void setNotifyAborted(boolean notifyAborted) -
setNotifyFailure
@DataBoundSetter public void setNotifyFailure(boolean notifyFailure) -
setNotifyEveryFailure
@DataBoundSetter public void setNotifyEveryFailure(boolean notifyEveryFailure) -
setNotifyNotBuilt
@DataBoundSetter public void setNotifyNotBuilt(boolean notifyNotBuilt) -
setNotifyUnstable
@DataBoundSetter public void setNotifyUnstable(boolean notifyUnstable) -
setNotifyRegression
@DataBoundSetter public void setNotifyRegression(boolean notifyRegression) -
setNotifyBackToNormal
@DataBoundSetter public void setNotifyBackToNormal(boolean notifyBackToNormal) -
setIncludeTestSummary
@DataBoundSetter public void setIncludeTestSummary(boolean includeTestSummary) -
setIncludeFailedTests
@DataBoundSetter public void setIncludeFailedTests(boolean includeFailedTests) -
setUploadFiles
@DataBoundSetter public void setUploadFiles(boolean uploadFiles) -
setArtifactIncludes
-
setNotifyRepeatedFailure
@DataBoundSetter public void setNotifyRepeatedFailure(boolean notifyRepeatedFailure) -
setIncludeCustomMessage
@DataBoundSetter public void setIncludeCustomMessage(boolean includeCustomMessage) -
setCustomMessage
-
setCustomMessageSuccess
-
setCustomMessageAborted
-
setCustomMessageNotBuilt
-
setCustomMessageUnstable
-
setCustomMessageFailure
-
setSlackUserIdResolver
-
builder
-
isAnyCustomMessagePopulated
public boolean isAnyCustomMessagePopulated() -
getRequiredMonitorService
-
newSlackService
-
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()- Overrides:
needsToRunAfterFinalized
in classPublisher
-
perform
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
-
prebuild
- Specified by:
prebuild
in interfaceBuildStep
- Overrides:
prebuild
in classBuildStepCompatibilityLayer
-
isMatrixRun
-