It seems that the method init in the AgentController.java was never called in production, as a result the configuration parameters which were passed to the agent via environment variable were never added to the BuildAgentConfiguration instance.
In TeamCity 2024.03.2 these configuration parameters now have a token which is essential for the agent authorization and if it is not provided then the agent won't be authorized.
The changes fix this problem as well as upgrade Gradle to 0.4.5 and bump the version of the plugin to 0.5.3.
It seems that the method init in the AgentController.java was never called in production, as a result the configuration parameters which were passed to the agent via environment variable were never added to the BuildAgentConfiguration instance.
In TeamCity 2024.03.2 these configuration parameters now have a token which is essential for the agent authorization and if it is not provided then the agent won't be authorized.
The changes fix this problem as well as upgrade Gradle to 0.4.5 and bump the version of the plugin to 0.5.3.