Bamboo 2.2 : Build Results Services
This page last changed on Feb 24, 2009 by bmccoy.
The following methods allow you to interact with Bamboo's build results. The following methods require authentication and actions/results will be restricted by the user's permissions. Add Comment To Build ResultAdds a comment to the given build result Arguments:
URL:
/api/rest/addCommentToBuildResults.action
Example:
/api/rest/addCommentToBuildResults.action?auth=YOwcnQHh5q&buildKey=MYPROJECT-TRUNK&buildNumber=109&content=my%20comment
Successful Response <response/> Add Label To Build ResultAdds a label to the given build result Arguments:
URL:
/api/rest/addLabelToBuildResults.action
Example:
/api/rest/addLabelToBuildResults.action?auth=YOwcnQHh5q&buildKey=MYPROJECT-TRUNK&buildNumber=109&label=myLabel
Successful Response <response/> Get Build Result DetailsReturns more specific information about a particular build result Arguments:
URL:
/api/rest/getBuildResultsDetails.action
Example:
/api/rest/getBuildResultsDetails.action?auth=YOwcnQHh5q&buildKey=MYPROJECT-TRUNK&buildNumber=109
Successful Response <response vcsRevisionKey="75149"> <commits> <commit author="bob" date="2009-02-18T17:22:38+1100"> <comment> Fixing annoying bug with Command Executer </comment> <files> <file name="/trunk/components/bamboo-core/src/main/java/com/atlassian/bamboo/command/Command.java" revision="75149"/> </files> </commit> </commits> <failedTests> <testResult testClass="com.atlassian.bamboo.builder.coverage.CloverReportParserTest" testMethod="testExtractsProjectCoveragePercentage" duration="0.195"> <errors> <error> org.dom4j.DocumentException: null Nested exception: null at org.dom4j.io.SAXReader.read(SAXReader.java:358) at org.dom4j.io.SAXReader.read(SAXReader.java:261) </error> </errors> </testResult> </failedTests> <successfulTests> <testResult testClass="com.atlassian.bamboo.rest.GetRecentlyCompletedBuildResultsForBuildTest" testMethod="testExecutesNormally" duration="0.002"> </testResult> <testResult testClass="com.atlassian.bamboo.util.HtmlUtilsTest" testMethod="testPreformattedTextMupltipleSpaces" duration="0.002"> </testResult> </successfulTests> </response>
|
![]() |
Document generated by Confluence on Mar 09, 2009 17:07 |