Created
April 13, 2011 11:45
-
-
Save searls/917404 to your computer and use it in GitHub Desktop.
Tells campfire that a Jenkins build failed. Configure the post-build-task plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Post+build+task ) to listen to the console output for failures and point it at a script like this one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'tinder' #https://github.com/collectiveidea/tinder | |
campfire = Tinder::Campfire.new('your-subdomain', | |
:token => 'your token', | |
:ssl => true, | |
:proxy => 'http://your-proxy:1234') | |
room = campfire.rooms.first | |
room.speak "Jenkins is reporting that the #{ENV['JOB_NAME']} build failed! More details: #{ENV['BUILD_URL']}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment