Bamboo 2.2 : Build Results Filters
This page last changed on Feb 24, 2009 by bmccoy.
The following REST methods allow you to retrieve various lists of the build results. The following methods require authentication and results will be restricted by the user's permissions. A lot of these methods return build result data. You can find more information on the data returned at the bottom of the page Get Latest Build Result For PlanProvides the last build result for the given buildKey. Arguments:
URL:
/api/rest/getLatestBuildResults.action
Successful Response <response> ... Build result data (see below) ... </response> Get Recently Completed Build Results For PlanProvides the overall most recently completed build results for the given build (as opposed to getLatestBuildResults, which gives the most recent build result for the build). Arguments:
URL:
/api/rest/getRecentlyCompletedBuildResultsForBuild.action
Successful Response: <response> <build> ... Build result data (see below) ... </build> <build> ... Build result data (see below) ... </build> </response> Get Latest Build Results For ProjectProvides the latest result for each build in the given project. Arguments:
URL:
/api/rest/getLatestBuildResultsForProject.action
Successful Response: <response> <build> ... Build result data (see below) ... </build> <build> ... Build result data (see below) ... </build> </response> Get Recently Completed Build Results For ProjectProvides the overall most recently completed build results for the given project (as opposed to getLatestBuildResultsForProject, which gives the most recent build result for each build in the project). Arguments:
URL:
/api/rest/getRecentlyCompletedBuildResultsForProject.action
Successful Response: <response> <build> ... Build result data (see below) ... </build> <build> ... Build result data (see below) ... </build> </response> Get Latest Builds By UserReturns recent builds triggered by a particular author. Arguments:
REST:
/api/rest/getLatestBuildsByUser.action
Successful Response: <response> <build> ... Build result data (see below) ... </build> <build> ... Build result data (see below) ... </build> </response> Get Latest Builds For Users Favourite PlansProvides the latest build details for each plan in the user's list of favourite plans. Arguments:
URL:
/api/rest/getLatestUserBuilds.action
Successful Response: <response> <build> <name>Confluence Stable - LDAP User Management</name> <key>CONFSTABFUNC-LDAP</key> <state>success</state> <buildNumber>146</buildNumber> <failedTestCount>0</failedTestCount> <successfulTestCount>4</successfulTestCount> <buildTime>2008-02-12 23:21:41</buildTime> </build> <build> <name>Confluence Stable - Main Build</name> <key>CONFSTAB-MAIN</key> <state>failed</state> <buildNumber>10</buildNumber> <failedTestCount>3</failedTestCount> <successfulTestCount>10</successfulTestCount> <buildTime>2008-02-12 12:02:14</buildTime> </build> </response>
Build Result DataMany of the methods above will return a build result with the following information.
Example Response
<projectName>Bamboo</projectName>
<buildName>HEAD</buildName>
<buildKey>BAM-TRUNK</buildKey>
<buildState>Successful</buildState>
<buildNumber>4681</buildNumber>
<failedTestCount>0</failedTestCount>
<successfulTestCount>1497</successfulTestCount>
<buildTime>2009-02-24 16:39:46</buildTime>
<buildCompletedDate>2009-02-24T16:58:42+1100</buildCompletedDate>
<buildDurationInSeconds>1136</buildDurationInSeconds>
<buildDurationDescription>18 minutes</buildDurationDescription>
<buildRelativeBuildDate>42 minutes ago</buildRelativeBuildDate>
<buildTestSummary>1497 passed</buildTestSummary>
<buildReason>Code has changed</buildReason>
<commits>
<commit author="bob"/>
</commits>
|
![]() |
Document generated by Confluence on Mar 09, 2009 17:07 |