Active agent list on server

Hi,

Is there a way to get active agent list on server side without going to UI? Do i need to write a custom code? Am looking for steps and code snippets.

Thanks
star

2 comments

Hi,

I see no way to get the list of agents not from the Web.

With regard to Java access, this is simple.

1. Create a component which requires BuildAgentManager in it's constructor and register it in build-server-plugin.xml (see http://www.jetbrains.net/confluence/display/TW/Plugin+Development).
2. invoke buildAgentManager.getRegisteredAgents

That's it.

Regards,
KIR

0

Thanks KIR ,

I got it working by writing a java component.

- star

0

Please sign in to leave a comment.