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 ClassesNested 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
FieldsFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionSlackNotifier(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 SlackNotifierBuilderbuilder()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleangetRoom()booleanbooleanbooleanbooleanbooleanisMatrixRun(AbstractBuild<?, ?> build) booleannewSlackService(AbstractBuild abstractBuild, BuildListener listener) booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) booleanprebuild(AbstractBuild<?, ?> build, BuildListener listener) voidsetArtifactIncludes(String artifactIncludes) voidsetAuthToken(String authToken) voidsetBaseUrl(String baseUrl) voidsetBotUser(boolean botUser) voidsetCommitInfoChoice(CommitInfoChoice commitInfoChoice) voidsetCustomMessage(String customMessage) voidsetCustomMessageAborted(String customMessageAborted) voidsetCustomMessageFailure(String customMessageFailure) voidsetCustomMessageNotBuilt(String customMessageNotBuilt) voidsetCustomMessageSuccess(String customMessageSuccess) voidsetCustomMessageUnstable(String customMessageUnstable) voidsetIconEmoji(String iconEmoji) voidsetIncludeCustomMessage(boolean includeCustomMessage) voidsetIncludeFailedTests(boolean includeFailedTests) voidsetIncludeTestSummary(boolean includeTestSummary) voidsetMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode) voidsetNotifyAborted(boolean notifyAborted) voidsetNotifyBackToNormal(boolean notifyBackToNormal) voidsetNotifyEveryFailure(boolean notifyEveryFailure) voidsetNotifyFailure(boolean notifyFailure) voidsetNotifyNotBuilt(boolean notifyNotBuilt) voidsetNotifyRegression(boolean notifyRegression) voidsetNotifyRepeatedFailure(boolean notifyRepeatedFailure) voidsetNotifySuccess(boolean notifySuccess) voidsetNotifyUnstable(boolean notifyUnstable) voidvoidvoidsetSendAsText(boolean sendAsText) voidsetSlackUserIdResolver(SlackUserIdResolver slackUserIdResolver) voidsetStartNotification(boolean startNotification) voidsetTeamDomain(String teamDomain) voidsetTokenCredentialId(String tokenCredentialId) voidsetUploadFiles(boolean uploadFiles) voidsetUsername(String username) Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuildMethods 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:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin 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:
needsToRunAfterFinalizedin classPublisher
-
perform
- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer
-
prebuild
- Specified by:
prebuildin interfaceBuildStep- Overrides:
prebuildin classBuildStepCompatibilityLayer
-
isMatrixRun
-