Is there an API for reading build statistics like code coverage, build duration, etc. from TeamCity 7.x?

Hi,

Is there an API for reading build statistics like code coverage, build duration, etc. from TeamCity 7.x?
Is this exposed through a web-api (REST web-service)? If not, is there any way to access these statistics from C# .Net code?

I am interested in the following statistics:
1. Number of unit tests for a configuration over a period
2. Number of builds per day for a configuration over a period
3. Build duration over a period

I know that these are available as graphs in Teamcity but we need to pull this data into custom Dashboard.

Thanks

2 comments
Comment actions Permalink

I wonder if the plugins can help. I found in my settings, default plugins, but I don't know how to use them to make them more detailed or put them in othe rlocations.

1.Plugin ; For ex.,
Statistics: build duration
Support for build duration statistics 24074  JetBrains, s.r.o.  <WEB-INF>\buildDurationStatisticsPlugin

1a.That is apparently the Statistics tab on a build, but I would like to save off this info in my own manner.
http://confluence.jetbrains.com/display/TCD65/Statistic+Charts

0
Comment actions Permalink

@Ashish Sharma, please use this url - https://server/app/rest/builds/id:111111111/statistics

Put build internal id instead of 111111111 above.

0

Please sign in to leave a comment.