Send AWS CodeBuild status messages to Slack via an Incoming WebHook.
npm install sp-slack-codebuildSend AWS CodeBuild status messages to Slack via an
Incoming WebHook.
This utility is designed to be used in an AWS CodeBuild project.
_Storing the SLACK_WEBHOOK_URL environment variable value in your
AWS Systems Manager Parameter Store is strongly
recommended._
Example buildspec.yml file:
``yaml`
env:
parameter-store:
SLACK_WEBHOOK_URL: /CodeBuild/MyProject/SlackWebHookUrl
phases:
install:
commands:
- npm install -g slack-codebuild
post_build:
finally:
- slack-codebuild
The Incoming WebHook URL where messages will be posted
(e.g. https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX`)
The AWS region where the build is running.
_This variable is automatically provided by CodeBuild._
The AWS CodeBuild ID of the build.
_This variable is automatically provided by CodeBuild._
Whether the current build is succeeding. Set to 0 if the build is failing, or 1 if the build is succeeding.
_This variable is automatically provided by CodeBuild._