REST API: how to get Build Queue?

Hi!
I'm trying to integrate Trac issue system with TeamCity. Usually I'm using REST API to get all neccessary information
from TC. Is it possible to get current Build Queue state from teamcity in xml or json format via http query?

3 comments

Max,

Build queue is not yet available via REST, pleae see/vote for the issue.

BTW, can you detail why the queued builds are necessary for the Trac integration?

0

Yegor,
thank you for the link, I've voted.


There is not anything Trac-specific. I just want to create a button in Trac to build project(and I want for real BIG RED BUTTON on the wall a little later). I can do queries to /ajax.html?getRunningBuilds=1, parse the result and disable button if build is currently running. I'm looking for something like that to disable button if build is in the queue.

0

Max,

Thank you for the details.

BTW, to get running builds of a specific build configuration in upcoming Teamcity 6.0 you can use a request like
http://<teamcity.server.url>/app/rest/builds/?locator=running:true,buildType:(id:<btNNN>)
or just drop "buildType:..." to get all running builds.

0

Please sign in to leave a comment.