Hello Team,
We will be upgrading our Jenkins from 2.346.2 to 2.426.3 .
Since I got the information from community to upgrade Java to Temurin JDK, [17.0.11+9] is it also recommended to install the same java version across all the agents as well ?
If yes can you help me with Java upgrade guide from openJDK 1.8 to Temurin 17.0.11+9
Some machine details:
openjdk version “1.8.0_332”
OpenJDK Runtime Environment (build 1.8.0_332-8u332-ga-1~deb9u1-b09)
OpenJDK 64-Bit Server VM (build 25.332-b09, mixed mode)
Agents should be launched with the same Java version as is used on the controller.
You are using a very old version of the agent. It appears that you are using an inbound agent, starting the agent from the agent computer. If you continue using that type of agent, then you should upgrade the agent.jar file to the version that is included with the upgraded Jenkins controller.
Agents can run jobs and perform builds with any Java version that you prefer. The Jenkins “tools” system allows a job to choose the specific version of Java that should run the job.
A stack overflow article provides more details for job configuration of specific Java versions. There is also a video from Darin Pope:
I agree with Ulli’s comment and have one more reason to offer for the upgrade. Jenkins 2.452.1 won’t run the Debian installer on Debian Stretch or earlier. The Jenkins installer for Debian now requires apt that is Debian 10 or newer. Refer to packaging issue 455 and packaging pull request 456 for more details.