Is there a REST API to get all enabled compatible agents for a given build type id ?
The reason I ask this is because I want to custom run a build on all enabled compatible agents .
The must-have requirements are that it do a clean sources .
I was investigating REST API app/rest/buildQueue to submit custom build that clean sources , by http POST some xml such as
<triggeringOptions cleanSources='true' rebuildAllDependencies='true' queueAtTop='false'/>
<comment><text>a build triggered by rest API</text></comment>
But I want it for all compatible enabled agents .