Bamboo 2.2 : Build Services
This page last changed on Mar 01, 2009 by bmccoy.
The following methods allow you to interact with your plans. You will require an authentication token for most of these methods. Update And BuildInstruct Bamboo to checkout the latest version of the build and build it. This is typically used by a CVS/SVN trigger script. This method does not use the standard API authentication mechanism. Bamboo will only accept this remote call if it originated from the IP address of the source control server. Arguments:
URL:
/api/rest/updateAndBuild.action
Successful Response: <response> <success>A build of Moo was triggered by remote http call.</success> </response> Execute BuildInstruct Bamboo to checkout the latest version of the build and build it. This is typically used to trigger a manual build. This method uses the standard authentication API. Arguments:
URL:
/api/rest/executeBuild.action
Example:
/api/rest/executeBuild.action?auth=HGYj89Kju&buildKey=BAM-MAIN
Successful Response: <response> <string>OK a build has been triggered.</string> </response> List ProjectsProvides a list of all the projects on this Bamboo server. Arguments:
URL:
/api/rest/listProjectNames.action
Successful Response: <response> <project> <name>My Awesome Project</name> <key>MY_PROJECT</key> </project> </response>
Get Project DetailsProvides details about a specific Bamboo Project. Arguments:
URL:
/api/rest/getProjectDetails.action
Example:
/api/rest/getProjectDetails.action?auth=m3OaZ14Ck2&projectKey=MY_PROJECT
Successful Response: <response> <project> <name>${project.name}</name> <key>${project.key}</key> <currentStatus>${project.currentStatus}</currentStatus> </project> </response>
List Build PlansProvides a list of all the build plans on this Bamboo server. Arguments:
URL:
/api/rest/listBuildNames.action
Successful Response: <response> <build enabled=true"> <name>My Project - Trunk</name> <key>MYPROJECT-TRUNK</key> </build> <build enabled=false"> <name>My Project - Branch</name> <key>MYPROJECT-BRANCH</key> </build> </response>
|
![]() |
Document generated by Confluence on Mar 09, 2009 17:07 |