Skip to content

artillery/circleci-slack-build-alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI-Slack Build Alerts

This application notifies a specific Slack channel when a specific Git branch fails to test on CircleCI.

But can't you do this with a Slack integration already? Currently, the CircleCI integration will show fixed/failed messages for all branches, which is much too verbose for a large team. Also, we want to make sure that a broken-master alert gets everyone's attention.

Getting started

  1. Follow the Heroku Getting Started guide if you haven't already.
  2. Clone this repo and cd to it.
  3. Run npm install and then npm install -g nodemon coffee-script
  4. Create a .env file that looks like the sample below.
  5. Run npm run dev

Sample .env file

SLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SLACK_CHANNEL=#eng
GIT_BRANCH=master

Deploying to Heroku

  1. If creating a new app, run heroku create and then set each config var using heroku config (read docs here]
  2. Use heroku config:set to set environment variables on the Heroku app.
  3. Make sure the app runs locally with Foreman: foreman start web
  4. To deploy, run git push heroku

Setting up Circle

Set up a notify webhook to the Heroku URL as described here.


Copyright 2015 Artillery Games, Inc. Licensed under the MIT license.

About

Extremely loud CircleCI build alerts in Slack for only one branch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors