Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple daemon to report last build status of projects and activities from cruisecontrol into the awesome Slack (http://slack.com). It support multiple projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0

Runtime

~> 0.2.0
~> 0.13.1
~> 1.6.2
 Project Readme

Now supports the new Webhook method of interacting with Slack.

This is a little app notifies Slack of any changes in the build status on your CruiseControl.rb install. It also support github as a source code repository to link to a commit. Other can easily be extended if needed

Installation

Install as a gem

gem install cruisecontrolrb-to-slack

or add to your Gemfile

# Gemfile
gem "cruisecontrolrb-to-slack"

and run bundle install

or from source

git clone git@github.com:epinault/cruisecontrolrb-to-slack.git
cd cruisecontrolrb-to-slack
bundle install
rake build
gem install ./pkg/cruisecontrolrb-to-slack-0.2.0.gem

Configuration

First you will need to create an incoming webhook from Slack integration. You will need to copy the token and the team name of that URL to setup the next part.

Make sure to define the following environment variable as they are required in either you .profile or /etc/profile.d/cruisecontrolrc-to-slack.sh (for all users)

SLACK_WEBHOOK_URL=webhook_url       # the webhook url you received from Slack
CC_HOST=your_cruise_control_host    # (e.g builder.cruisecontrol.com)

The following are optionals

Basic auth for your CruiseControlrb install (recommended):

CC_USERNAME=your_username
CC_PASSWORD=your_password
SLACK_USERNAME=your_username     # Name to show for the message coming in  [Default: cruisecontrol]
SLACK_CHANNEL=your_channel       # the channel to receive notification  [Default: #general] (include the '#')
POLLING_INTERVAL							   # polling interval in seconds. defaults to 5 seconds.

Running

As this gem uses dante, options are best describes here but here are some very simple setup

Run in foreground and STDOUT output (to test most likely)

cruisecontrolrb-to-slack

Run in foreground with logs

cruisecontrolrb-to-slack -l /var/log/myapp.log

Run as a daemon with a pid file and logs

cruisecontrolrb-to-slack -d -P /var/run/myapp.pid -l /var/log/myapp.log