Sign inSign up

chadwilson/bamboo_cctray_proxy

By chadwilson

•Updated over 2 years ago

Ruby proxy application that exposes Atlassian Bamboo build statuses in CCTray XML format

Image
1

1.3K

chadwilson/bamboo_cctray_proxy repository overview

⁠Bamboo-to-CCTray Proxy

Build pipeline status badge

Bamboo-to-CCTray is a small Ruby proxy application that can expose Atlassian Bamboo continuous integration build statuses in the CCTray XML format⁠, originally inspired by CruiseControl, and still supported by most CI servers (cloud and non-cloud-based). But not Bamboo!

This allows the many tools written to support monitoring of builds to be used with Atlassian Bamboo builds. Examples of such tools are build radiator/monitor tools such as NeverGreen⁠ and user notification tools such as CCMenu

This was originally developed in 2010⁠ by @amanking⁠, and later ported to GitHub, moved to modern Ruby, Bamboo REST API (rather than RSS feeds), Dockerized and augmented to support monitoring entire Bamboo projects.

⁠Examples

Bamboo builds on NeverGreen⁠ (with healthy builds showing; for clarity) Example Monitor page Auto-detection of Bamboo builds: Example Tracking page

You can see this example yourself in ./examples⁠ and run with

git clone [email protected]:chadlwilson/bamboo_cctray_proxy.git && cd bamboo_cctray_proxy.git/examples
docker-compose up

⁠Usage

  1. Setup your configuration in config/bamboo.xml
  2. Run it by one of the mechanisms below
  3. Navigate to http://localhost:7000/dashboard/cctray.xml⁠ to view the feed; point your tools at this
⁠Docker
mkdir -p config && touch config/bamboo.xml # Put your config here
docker run -p 7000:7000 -v $(pwd)/config:/app/config chadwilson/bamboo_cctray_proxy:latest
⁠Running from source
git clone [email protected]:chadlwilson/bamboo_cctray_proxy.git && cd bamboo_cctray_proxy
bundle install --without=test
cd ramaze && ruby -rrubygems start.rb

⁠Configuration

The Bamboo servers and builds to monitor are specified in config/bamboo.yml.

Example configuration:

# Monitor specific builds by their build plan keys
- spring_cloud_data_builds:
    url: https://build.spring.io
    build_keys:
      - SCD-K8S19B15X
      - SCD-SCDFSAMPLES

# Monitor entire projects with their project keys
- spring_reactor_project:
    url: https://build.spring.io
    projects:
      - REACTOR

# You can use either of the patterns above with a secured Bamboo server
# Note; the password is in plain-text.
- secured_bamboo:
    url: https://secret.bamboo.org
    basic_auth:
      username: username
      password: password
    build_keys:
      - ABC

# Returns ALL plans the user has permissions to view on the server.
# Be careful; this probably won't perform well; especially not on a public server!
- secured_bamboo_all_plans:
    url: https://secret.bamboo.org
    basic_auth:
      username: username
      password: password

⁠Resources

Tag summary

Content type

Image

Digest

sha256:c07110ac8…

Size

28.1 MB

Last updated

over 2 years ago

docker pull chadwilson/bamboo_cctray_proxy