public class SlackNotifier extends Notifier
Modifier and Type | Class and Description |
---|---|
static class |
SlackNotifier.DescriptorImpl |
Publisher.DescriptorExtensionListImpl
ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
Modifier and Type | Field and Description |
---|---|
static String |
MATRIX_PROJECT_CLASS_NAME |
static String |
MATRIX_RUN_CLASS_NAME |
BUILDERS, PUBLISHERS
Constructor and Description |
---|
SlackNotifier(CommitInfoChoice commitInfoChoice) |
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(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.
|
all, getProjectAction, prebuild
getProjectAction, getProjectActions, perform
public static final String MATRIX_PROJECT_CLASS_NAME
public static final String MATRIX_RUN_CLASS_NAME
@DataBoundConstructor public SlackNotifier(CommitInfoChoice commitInfoChoice)
@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 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 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)
public String getAuthTokenCredentialId()
public SlackNotifier.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<Publisher>
getDescriptor
in class Notifier
public String getBaseUrl()
public String getTeamDomain()
@DataBoundSetter public void setTeamDomain(String teamDomain)
public String getRoom()
@DataBoundSetter public void setRoom(String room)
public String getAuthToken()
@DataBoundSetter public void setAuthToken(String authToken)
public String getTokenCredentialId()
@DataBoundSetter public void setTokenCredentialId(String tokenCredentialId)
public boolean getBotUser()
@DataBoundSetter public void setBotUser(boolean botUser)
public String getSendAs()
@DataBoundSetter public void setSendAs(String sendAs)
public boolean getSendAsText()
@DataBoundSetter public void setSendAsText(boolean sendAsText)
public String getIconEmoji()
@DataBoundSetter public void setIconEmoji(String iconEmoji)
public String getUsername()
@DataBoundSetter public void setUsername(String username)
public boolean getStartNotification()
public boolean getNotifySuccess()
public CommitInfoChoice getCommitInfoChoice()
@CheckForNull public MatrixTriggerMode getMatrixTriggerMode()
public boolean getNotifyAborted()
public boolean getNotifyFailure()
public boolean getNotifyEveryFailure()
public boolean getNotifyNotBuilt()
public boolean getNotifyUnstable()
public boolean getNotifyRegression()
public boolean getNotifyBackToNormal()
public boolean getIncludeTestSummary()
public boolean getIncludeFailedTests()
public boolean getUploadFiles()
public String getArtifactIncludes()
public boolean getNotifyRepeatedFailure()
public boolean getIncludeCustomMessage()
public String getCustomMessage()
public String getCustomMessageSuccess()
public String getCustomMessageAborted()
public String getCustomMessageNotBuilt()
public String getCustomMessageUnstable()
public String getCustomMessageFailure()
public SlackUserIdResolver getSlackUserIdResolver()
@DataBoundSetter public void setBaseUrl(String baseUrl)
@DataBoundSetter public void setStartNotification(boolean startNotification)
@DataBoundSetter public void setNotifySuccess(boolean notifySuccess)
@DataBoundSetter public void setCommitInfoChoice(CommitInfoChoice commitInfoChoice)
@DataBoundSetter public void setMatrixTriggerMode(MatrixTriggerMode matrixTriggerMode)
@DataBoundSetter public void setNotifyAborted(boolean notifyAborted)
@DataBoundSetter public void setNotifyFailure(boolean notifyFailure)
@DataBoundSetter public void setNotifyEveryFailure(boolean notifyEveryFailure)
@DataBoundSetter public void setNotifyNotBuilt(boolean notifyNotBuilt)
@DataBoundSetter public void setNotifyUnstable(boolean notifyUnstable)
@DataBoundSetter public void setNotifyRegression(boolean notifyRegression)
@DataBoundSetter public void setNotifyBackToNormal(boolean notifyBackToNormal)
@DataBoundSetter public void setIncludeTestSummary(boolean includeTestSummary)
@DataBoundSetter public void setIncludeFailedTests(boolean includeFailedTests)
@DataBoundSetter public void setUploadFiles(boolean uploadFiles)
@DataBoundSetter public void setArtifactIncludes(String artifactIncludes)
@DataBoundSetter public void setNotifyRepeatedFailure(boolean notifyRepeatedFailure)
@DataBoundSetter public void setIncludeCustomMessage(boolean includeCustomMessage)
@DataBoundSetter public void setCustomMessage(String customMessage)
@DataBoundSetter public void setCustomMessageSuccess(String customMessageSuccess)
@DataBoundSetter public void setCustomMessageAborted(String customMessageAborted)
@DataBoundSetter public void setCustomMessageNotBuilt(String customMessageNotBuilt)
@DataBoundSetter public void setCustomMessageUnstable(String customMessageUnstable)
@DataBoundSetter public void setCustomMessageFailure(String customMessageFailure)
@DataBoundSetter public void setSlackUserIdResolver(SlackUserIdResolver slackUserIdResolver)
public static SlackNotifierBuilder builder()
public boolean isAnyCustomMessagePopulated()
public BuildStepMonitor getRequiredMonitorService()
public SlackService newSlackService(AbstractBuild abstractBuild, BuildListener listener)
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class Publisher
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
perform
in interface BuildStep
perform
in class BuildStepCompatibilityLayer
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
prebuild
in interface BuildStep
prebuild
in class BuildStepCompatibilityLayer
public boolean isMatrixRun(AbstractBuild<?,?> build)
Copyright © 2016–2022. All rights reserved.