Usage of ServerCommandsHandlersRegistry

Answered

I'm currently building a plugin that requires commands to be sent from Server to Agent. I am able to get this working with xml-rpc api, but recently came across ServerCommandsHandlersRegistry on the teamcity javadoc:

http://javadoc.jetbrains.net/teamcity/openapi/current/jetbrains/buildServer/agent/ServerCommandsHandlersRegistry.html 

It says that it has been in since 9.1, but I could not find the server side parts of this extension( not to mention the "TODO" comments on the javadoc ).

Could somebody point me in the right direction on how to utilize this, or is it just an incomplete implementation as it is now?

 

1 comment
Comment actions Permalink

Hello,

Since TeamCity 9.1 version Unidirectional Agent-to-Server Communication is supported. For more details please see the section: https://confluence.jetbrains.com/display/TCD9/Setting+up+and+Running+Additional+Build+Agents#SettingupandRunningAdditionalBuildAgents-UnidirectionalAgent-to-ServerCommunication.

If you want to use xml-rpc protocol you can use internal property teamcity.agent.communicationProtocols=xml-rpc.

0

Please sign in to leave a comment.