Project

bamboo_api

0.0
No commit activity in last 3 years
No release in over 3 years
Atlassian Bamboo API Wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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: "jorge@example.com", 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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request