Skip to content

eddiewebb/bamboo-blinker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bamboo Blinker

A build monitor light for Atlassian Bamboo using a BlyncLight device. The bamboo-build-bunny plugin is used to fetch build status(es) from Bamboo.

Download

Pre-built binaries are available on the release pages.

Running

./bamboo-blinker https://your-bamboo.com/rest/build-bunny/1.0/summary/120edef1-a493-4813-82db-edb6b078cf6b.json

Or to check health at a different interval (60 seconds in this case):

./bamboo-blinker https://your-bamboo.com/rest/build-bunny/1.0/summary/120edef1-a493-4813-82db-edb6b078cf6b.json 60

Backoff Logic

To prevent dozens or hundreds of clients from beating up bamboo by checking too frequently, the application will double the delay interval up to 10 minutes when the returned timeToEvaluate > 150ms. The interval will be reset to argument #2 (default 10s) as soon as the first response is within limits.

To override the acceptable limit for this value, pass a 3rd argument.

./bamboo-blinker https://your-bamboo.com/rest/build-bunny/1.0/summary/120edef1-a493-4813-82db-edb6b078cf6b.json 60 200

More Blync Bunnies!

This project also supports multiple blynclights/bunnies. The specific BlyncLight ID can be provided as an additional argument. (0 will use ALL connected lights)

./bamboo-blinker https://your-bamboo.com/rest/build-bunny/1.0/summary/120edef1-a493-4813-82db-edb6b078cf6b.json 60 200 1

The ID is based on the connected USB port. TO see the logical order use the argument FlashMob to have all connected lights flash in logical order from 1..n

./bamboo-blinker FlashMob

Building

This project depends on goblync.

go get github.com/boombuler/hid
go get github.com/davidehringer/goblync
go build

See notes for https://github.com/boombuler/hid if you have issues building for different platforms.

About

A build monitor light for Atlassian Bamboo using a BlyncLight.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%