Send AWS CodeBuild status messages to Slack via an Incoming WebHook.
npm install @unly/slack-codebuildSLACK_WEBHOOK_URL environment variable value in your
buildspec.yml file:
yaml
env:
parameter-store:
SLACK_WEBHOOK_URL: /CodeBuild/MyProject/SlackWebHookUrl
CODEBUILD_NOTIFY_ONLY_IF_FAIL: 1
phases:
install:
commands:
- npm install -g slack-codebuild
post_build:
finally:
- slack-codebuild
`
Environment Variables
$3
The Incoming WebHook URL where messages will be posted
(e.g. https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX`)