Setting a buildAgent to maintenance mode through buildAgent parameters

We are currently using a modified version of a plugin  that auto-deauthorizes a buildAgent based on a key in the buildAgent.parameters file that we define. 

Our plugin is based off this codebase https://github.com/tigase/tc-agent-auto-auth and we specifically have modified this file https://github.com/tigase/tc-agent-auto-auth/blob/master/agent-auto-auth-server/src/main/java/tigase/agentauth/AgentAuth.java

the sBuildAgent object (like here: https://github.com/tigase/tc-agent-auto-auth/blob/93a1ec877e0d154e27a177ebc09eb68cd84995bb/agent-auto-auth-server/src/main/java/tigase/agentauth/AgentAuth.java#L91) does not have a method to put an agent into maintenance mode.

What teamcity object would allow access to a method to put the agent into maintenance mode? 

Thanks.

1

Please sign in to leave a comment.