Skip to main content
Version: 5.11.x

SlackNotificationConfiguration

Sets up CircleCI's Slack notifications feature to send notifications on a build failure.

caution

Only supported with CircleCI.

Table of contents

Properties overview

Properties

branches

branches: string[] = ['^main$', '^master$']

A list of expressions used to determine if the branch being built should have notifications set for it. Will be treated as a regular expression, and wrapped with ^ and $ if required.

Inherited from

Notification.branchPattern


cci

Optional cci: CircleCIConfiguration

Additional (optional) CircleCI specific configuration.

The configuration expects the secrets in a CircleCI context named slack.


channel

Optional channel: string

The channel that the notification should be sent to.