REST API - Ability to get Time Spent in the Queue?

Hi,

Does anyone know if there is any way to capture how long a particular build spent in the build queue from the rest api?  Is this information exposed anywhere?  It would be nice to be able to get this information somehow rather than just viewing the values in the statistics page.

Thanks,
Jay

4 comments
Comment actions Permalink

Hi Jason

It's just added in 6.5.
A request to /app/rest/builds/id:628/statistics/
returns

<properties>
     <property name="ArtifactsSize" value="19890"/>
     <property name="BuildCheckoutTime" value="32"/>
     <property name="BuildTestStatus" value="1"/>
     <property name="SuccessRate" value="1"/>
     <property name="TimeSpentInQueue" value="66"/>

</properties>



Michael
0
Comment actions Permalink

Hi Michael,

You're awesome, is that value in seconds or minutes?

Thanks,
Jay

0
Comment actions Permalink

They are milliseconds.

0
Comment actions Permalink

great, thx.  Look forward to it.

0

Please sign in to leave a comment.