peterjmit/bamboo-api-client
Composer 安装命令:
composer require peterjmit/bamboo-api-client
包简介
A REST API client for Atlassian Bamboo
README 文档
README
An API client consuming the REST resources made available for Atlassian's CI software - Bamboo
Installation
Add this line to your composer.json file, and run composer update
"peterjmit/bamboo-api-client": "~0.1.0"
Usage
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);
Methods
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');
Todo
- Implement all endpoints/resources
- 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
统计信息
- 总下载量: 76
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-04-08