Howdy, i'm currently trying to build a little tool that get's plan info from the queue.json?expand=queuedBuilds endpoint. I then want to detect the required capabilities of a queued plan.
When looking through https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-group-api i don't really find anything that would tie a plan to its dependencies / needed agent capabilities.
Thanks in advance, for any help :)
Hello Tim,
Welcome to Atlassian community.
As far as I am aware I don't think so we have a REST API to display the requirement of a queued Job to the Capabilities of the agent.
The best available API end point of queued Jobs is below and you can use couple of expands to get more details of the queued Job, but it does not show it's requirements.
curl -k -u user_id:password \
-H 'Content-type: application/json' \
-H 'Accept: application/json' \
-X GET http://bamboo921:8085/rest/api/latest/queue?expand=queuedBuilds
Details here
However this information can be fetched via SQL queries, let me know if you are interested in that and I'll try to get that for you.
Regards,
Shashank Kumar
*please don't forget to Accept the answer if your query was answered**
That's a bummer. I'll think about the SQL variant or just discard my tool idea. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.