by Aman King
A Ruby application that can expose Atlassian Bamboo continuous integration build statuses in CruiseControl's CCTray XML format. When delivered over HTTP, this allows the many tools written to support monitoring of CruiseControl builds to be used with Atlassian Bamboo builds. Examples of such tools are CCMenu for Mac OS X and CCTray for Windows.
The Bamboo servers and builds to monitor are specified in config/bamboo.yml.
- spring_bamboo: url: http://build.springsource.org/ build_keys: - SPR-TRUNKSNAPSHOT - OSGI-TRUNK - SEC-TRUNK - SEC-TRUNK - dwr_bamboo: url: http://ci.directwebremoting.org/bamboo/ build_keys: - DWR-TRUNK
A Ramaze application is included in this project as an example of delivering the CCTray XML over HTTP.
To run it (from within the project folder):
cd ramaze ruby -rrubygems start.rb
The above may also be run under JRuby:
jruby -rrubygems start.rb
Once run, a tool like CCTray or CCMenu must be made to point to: http://localhost:7000/dashboard/cctray.xml
Note: the default port can be overridden like this:
ruby -rrubygems start.rb --port=7777
- Install Ruby or JRuby
- Install RubyGems (optional if included in the Ruby/JRuby installation: try the below command first)
- Install Ramaze gem:
gem install ramazeor
jruby -S gem install ramaze
- Atlassian Bamboo
- CCTray (Windows)
- CCMenu (Mac OS X)
- BuildNotify (Linux)
- CruiseControl monitoring tools
- CCTray XML format
- Nokogiri XML parser
Copyright 2010 Aman King
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.