So far build queue is not available via REST API. Here is an issue to vote for: TW-12957. Current approaches would be to write a plugin (extend current REST one) to expose the data or parse the data that is used by the build queue HTML page to get refreshes.
BTW, can you share how do you plan to use build queue information?
I'll check out either extending the current rest api or scrapping the html page.
Our current need for this is we check all our builds to see if they are all passing and send an "OK" status email, in that email though I would like to inlude how many builds are in flight (running) and how may are in the queue.
As a side note: If your solutoin only covers builds from TeamCity, I would consider writing TeamCity plugin to perform the entire task and display a web page with the status and links to the builds as well as sending out email.
Thanks Yegor for the suggestion, I'll look into it. Are you thinkin this would be a page I would put in the TeamCity server running tomcat or somewhere else?
Yes, it can be a page provided by a plugin and thus available via TeamCIty UI. e.g. you can get an example form the sample plugin bundled with TeamCity.
Jason,
So far build queue is not available via REST API. Here is an issue to vote for: TW-12957.
Current approaches would be to write a plugin (extend current REST one) to expose the data or parse the data that is used by the build queue HTML page to get refreshes.
BTW, can you share how do you plan to use build queue information?
Hi Yegor,
I'll check out either extending the current rest api or scrapping the html page.
Our current need for this is we check all our builds to see if they are all passing and send an "OK" status email, in that email though I would like to inlude how many builds are in flight (running) and how may are in the queue.
Thanks,
Jay
Jason,
Thank you for the details.
As a side note:
If your solutoin only covers builds from TeamCity, I would consider writing TeamCity plugin to perform the entire task and display a web page with the status and links to the builds as well as sending out email.
Thanks Yegor for the suggestion, I'll look into it. Are you thinkin this would be a page I would put in the TeamCity server running tomcat or somewhere else?
Jason,
Yes, it can be a page provided by a plugin and thus available via TeamCIty UI.
e.g. you can get an example form the sample plugin bundled with TeamCity.
Great, thanks. I'll take a look at that.