Rest API Plugin - What is in the Queue?

Hi,

Does the rest api plugin expose what is in the queue?  Is scrapping the queue page the only way I can get this information?

Thanks,
Jay

6 comments
Comment actions Permalink

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?

0
Comment actions Permalink

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

0
Comment actions Permalink

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.

0
Comment actions Permalink

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?

0
Comment actions Permalink

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.

0
Comment actions Permalink

Great, thanks.  I'll take a look at that.

0

Please sign in to leave a comment.