Build configuration and agent statistics

I am trying to figure out if this is possible. 

I want to get a statistic that shows me how many builds each of my build agents have done for a build configuration or Project.

ex.

Agent 1 - 312

Agent 2 - 500

Agent 3 - 100

0
4 comments

Hi Ewin,

 

This information isn't available directly, but should be easy to obtain. You can pull the builds of a given build configuration (or project), and they will include information of which agent ran them: https://confluence.jetbrains.com/display/TCD18/REST+API#RESTAPI-BuildLocator

 

If you aren't seeing all builds, make sure to increase the lookupLimit and the count of results, even if the initial list is relatively small. The REST API currently has some limitations on what it returns with the default lookup limit and count on installations with large history.

0

I got to hit rest api, but when I am trying to get specifics of Build Type Id as shown in red box.  

But in the screenshot below, there are Build Type Id that is not matching the id I provided to build out my build locator.

0

I see the issue. You are passing the string as a paremeter itself, but you need to pass it in a very specific format.

 

Instead of ?buildType=<your_bt> pass the following: ?locator=buildType:<your_bt>. Check the examples provided in the documentation, they provide better insight into it.

1

After your comment, I applied a correction. 

How do I see what builds were done by a specific agent? 

0

Please sign in to leave a comment.