slack-codebuild
Send AWS CodeBuild status messages to Slack via an Incoming WebHook.
Last updated 2 years ago by bluejeansandrain .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install slack-codebuild 
SYNC missed versions from official npm registry.

slack-codebuild

Send AWS CodeBuild status messages to Slack via an Incoming WebHook.

Getting Started

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:

env:
  parameter-store:
    SLACK_WEBHOOK_URL: /CodeBuild/MyProject/SlackWebHookUrl
    
phases:
  install:
    commands:
      - npm install -g slack-codebuild
  post_build:
    finally:
      - slack-codebuild

Environment Variables

SLACK_WEBHOOK_URL

The Incoming WebHook URL where messages will be posted (e.g. https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX)

AWS_REGION

The AWS region where the build is running.

This variable is automatically provided by CodeBuild.

CODEBUILD_BUILD_ID

The AWS CodeBuild ID of the build.

This variable is automatically provided by CodeBuild.

CODEBUILD_BUILD_SUCCEEDING

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.

Current Tags

  • 1.1.2                                ...           latest (2 years ago)

5 Versions

  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |