This module defines the Slack notifications feature for Jenkins pipelines.
It includes configurations for sending notifications to Slack channels or users
The notifications can be simple text messages or rich block messages.
-
channel: The Slack channel or user to send notifications to. Must start with # for channels or @ for users. ( (Required) Type:
str) -
message_template: Template for the message to be sent. Can include variables like env.BUILD_URL, env.JOB_NAME, etc. ( (Required) Type:
str) -
pre_build_step: Configuration for the notifications sent during the pre-build step phase. ( Type:
SlackNotificationPreBuildStepEventConfig)-
simple_message: Configuration for simple message notifications. ( Type:
SlackNotificationSimpleMessageConfig)-
enabled: Whether to send a simple text message. ( Type:
boolDefault:True) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
message: The message to send. ( Type:
strDefault: `` )
-
-
blocks_message: Configuration for blocks message notifications. ( Type:
SlackNotificationBlocksMessageConfig)-
enabled: Whether to send a blocks message. ( Type:
boolDefault:False) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
blocks: The blocks to send. ( Type:
strDefault: `` )
-
-
-
on_success: Configuration for the notifications sent during the on-sucess step phase. ( Type:
SlackNotificationOnSuccessEventConfig)-
simple_message: Configuration for simple message notifications. ( Type:
SlackNotificationSimpleMessageConfig)-
enabled: Whether to send a simple text message. ( Type:
boolDefault:True) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
message: The message to send. ( Type:
strDefault: `` )
-
-
blocks_message: Configuration for blocks message notifications. ( Type:
SlackNotificationBlocksMessageConfig)-
enabled: Whether to send a blocks message. ( Type:
boolDefault:False) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
blocks: The blocks to send. ( Type:
strDefault: `` )
-
-
-
on_failure: Configuration for the notifications sent during the on-failure step phase. ( Type:
SlackNotificationOnFailureEventConfig)-
simple_message: Configuration for simple message notifications. ( Type:
SlackNotificationSimpleMessageConfig)-
enabled: Whether to send a simple text message. ( Type:
boolDefault:True) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
message: The message to send. ( Type:
strDefault: `` )
-
-
blocks_message: Configuration for blocks message notifications. ( Type:
SlackNotificationBlocksMessageConfig)-
enabled: Whether to send a blocks message. ( Type:
boolDefault:False) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
blocks: The blocks to send. ( Type:
strDefault: `` )
-
-
-
on_unstable: Configuration for the notifications sent during the on-unstable step phase. ( Type:
SlackNotificationOnUnstableEventConfig)-
simple_message: Configuration for simple message notifications. ( Type:
SlackNotificationSimpleMessageConfig)-
enabled: Whether to send a simple text message. ( Type:
boolDefault:True) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
message: The message to send. ( Type:
strDefault: `` )
-
-
blocks_message: Configuration for blocks message notifications. ( Type:
SlackNotificationBlocksMessageConfig)-
enabled: Whether to send a blocks message. ( Type:
boolDefault:False) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
blocks: The blocks to send. ( Type:
strDefault: `` )
-
-
-
on_exception: Configuration for the notifications sent during the on-exception step phase. ( Type:
SlackNotificationOnExceptionEventConfig)-
simple_message: Configuration for simple message notifications. ( Type:
SlackNotificationSimpleMessageConfig)-
enabled: Whether to send a simple text message. ( Type:
boolDefault:True) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
message: The message to send. ( Type:
strDefault: `` )
-
-
blocks_message: Configuration for blocks message notifications. ( Type:
SlackNotificationBlocksMessageConfig)-
enabled: Whether to send a blocks message. ( Type:
boolDefault:False) -
color: Color for the notification in slack. ( Type:
Optional[str]Default:None) -
channel_override: Channel override for this message. ( Type:
strDefault: `` ) -
blocks: The blocks to send. ( Type:
strDefault: `` )
-
-
-
webhook_credential_id: The Jenkins credentials ID for the Slack webhook. ( Type:
Optional[str]Default:None)