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