1 comment
Comment actions Permalink

Hi, this is a tricky one. There isn't an agentPool property to use as a locator, but we can search for builds that are currently queued and belong to a particular agent pool like this:

<teamcity url>/app/rest/builds?locator=state:queued,compatibleAgent:(pool:(name:<agent pool>))

Hopefully, this gets you started. Let me know if it works for your purpose or if you still need additional help.


Please sign in to leave a comment.