BambooApi
This gem is a wrapper for Atlassian's Bamboo's REST API. More infomation about the API can be found here. Using this gem gives you the ability to get information on your Bamboo projects, plans, builds, and stages (for builds only). Of most use is probably the ability to check the build status of a plan.
Installation
Add this line to your application's Gemfile:
gem 'bamboo_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bamboo_api
Usage
Initialization
BambooApi.new( {end_point: "example.atlassian.net", username: "[email protected]", password: "password" } )
Projects
BambooApi::Project.all
BambooApi::Project.find( "KEY" )
Plans
BambooApi::Plan.all
BambooApi::Plan.find( "PLANKEY" )
BambooApi::Plan.find( "PLANKEY" ).builds
BambooApi::Plan.find( "PLANKEY" ).building?
BambooApi::Plan.find( "PLANKEY" ).readable_status
Builds
BambooApi::Build.find( "BUILDID" )
BambooApi::Build.find_by_plan( "PLANKEY" )
BambooApi::Build.find( "BUILDID" ).stages
BambooApi::Build.find( "BUILDID" ).status
BambooApi::Build.find( "BUILDID" ).failing_stage # Return the failing stage if the status if failing
Note that there is no 'all' method for builds, as the Bamboo API requires a plan key.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request