Bamboo REST API client
An API client consuming the [REST resources][1] made available for Atlassian's
CI software - Bamboo, (*1)
Installation
Add this line to your composer.json file, and run composer update
, (*2)
"peterjmit/bamboo-api-client": "~0.1.0"
Usage
Create an API client using http basic authentication, (*3)
<?php
use Peterjmit\Bamboo\Bamboo;
$bamboo = Bamboo::create('bamboo.com', 'username', 'password');
Specify an API version, (*4)
<?php
$bamboo = Bamboo::create('bamboo.com', 'username', 'password', 1);
Methods
Get all build results, (*5)
<?php
$bamboo->getAllBuildResults();
Get build results for a plan, (*6)
<?php
$bamboo->getPlanResults('AN', 'EXAMPLE');
Get build results for a plan branch, (*7)
<?php
$bamboo->getPlanBranchResults('AN', 'EXAMPLE', 'my-cool-feature-branch');
Get plan information for a specific branch, (*8)
<?php
$bamboo->getPlanBranch('AN', 'EXAMPLE', 'my-cool-feature-branch');
Todo
- Implement all [endpoints/resources][1]
- Create objects to represent resources
- Utilize "expand" functionality in bamboo
- Use HATEOS links to load relations to returned objects
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