I upgraded Jenkins to v2.394 which is running on Linux OS. After the upgrade 2 of the windows agents were not able to connect back to the controller. After some investigation, agent error log says “Agent version 4.7 or newer is required”. How do I upgrade it? Thank you.
The Windows agent will have a file
agent.jar installed on it somewhere. A new copy of that file needs to be downloaded from the controller page that is used to configure the agent. Replace the old copy of agent.jar with the new copy and restart the agent.
As an alternative that would avoid the need to download that update yourself, you could switch from the inbound agent configuration you are running now to instead use an ssh (outbound) agent. Rough instructions are available in Launch Windows agents with OpenSSH.
okay. I downloaded using controllerurl/jnlpjars/agent.jar, replaced it and started again. It just took 3 minutes. Thanks.