Agent statistic

Answered

I've number of projects/builds configurations and 40 agents organized in few agent pools. Each project is assigned to more than one pool. I'l like to list a statistic to see sum:

build A - 5 executions on Agent 100
build A - 20 execution on Agent 101
build A - 1 execution on Agent 200
build A - 3 execution on Agent 203

or 

build A - 25 executions on pool 100
build A - 4 execution on pool 200

I've read the https://teamcity-support.jetbrains.com/hc/en-us/community/posts/360000475339-Build-configuration-and-agent-statistics but there is no final answer there.

0
2 comments
Avatar
Permanently deleted user

Somehow the agents matrix answers my request but there is no export from that page :( 

Any clue how to import such huge table ?

0

Currently, it is not possible to export any data from the matrix page. But that's a nice suggestion. I created this feature request: https://youtrack.jetbrains.com/issue/TW-69293, please vote for it.

Other than that, you can try building your own report with the help of REST API. These requests will help you:

  • /app/rest/builds?locator=agent:<agentLocator> - allows you to find builds executed on a specific agent
  • /app/rest/builds?locator=buildType:YOUR_BUILD_CONFIG_ID - allows you to find all builds for a given build configuration

You can find more information on the REST API here: https://www.jetbrains.com/help/teamcity/rest-api-reference.html

0

Please sign in to leave a comment.