I use these APIs to Authorize, Unauthorize build agent. But it causes the agent to coexist in many different states.
Please change the above APIs so that the following tasks work together
/rest/tokens/unauthorize
TokenManager.instance.delete(token);
AgentManager.instance.removeBuildAgent(ip, port);
http://localhost:8810/rest/tokens/authorize?ip=<ip address of build agent>&port=<port of build agent>
http://localhost:8810/rest/tokens/authorize?ip=<ip address of build agent>&port=<port of build agent>
I use these APIs to Authorize, Unauthorize build agent. But it causes the agent to coexist in many different states.
Please change the above APIs so that the following tasks work together
/rest/tokens/unauthorize
TokenManager.instance.delete(token);
AgentManager.instance.removeBuildAgent(ip, port);
/rest/tokens/authorize
TokenManager.instance.save(token);
AgentManager.instance.removeUnauthorizedAgent(ip, port);