I upgraded the jenkins controller to the latest version 2.492.2 on linux machine. No issue. I have a windows agent, it connect to the controller via agent.jar file.
But, Windows jenkins agent as a service (jenkins-agent.exe) start fails with an error. IOException agent version 3107.v665000b_51092 or newer is required. I searched online there is no such version. Github only has 2.12.0 exe file. Btw I upgraded Java as well to v17 on both controller and the agent.
The best thing to do is download the agent.jar from the controller each time the service starts. Then you can be sure to use a version that fits to the controller version.
You find the url from where to download on the agent page in Jenkins when the agent is not connected.
The command to use is like this:
curl.exe -sO http://<jenkins-url>:9090/jnlpJars/agent.jar
Afaik the jenkins-agent.exe just sets up everything so you can run the agent as a service. So you would need to adjust that setup a bit.
Yes, I had no problem with agent.jar. I only complains with exe file. I already have all the service setup.