What Java version does current Jenkins require?
IntermediateConceptArchitecture, executors & JENKINS_HOME
Answer
Jenkins LTS releases since 2.463.1 require Java 17 or 21 on the controller and on agents (remoting runs on the agent JVM too). Java 11 support ended in 2024. The official images come as jenkins/jenkins:lts-jdk17 and lts-jdk21; we use JDK 21. Your build tools can use a different JDK, installed in the build container or through the tools directive, because the agent JVM and the build JDK are independent.
More on Architecture, executors & JENKINS_HOME
What are the main components of a Jenkins installation?BeginnerWhat is the difference between a node, an agent and an executor?BeginnerWhy should the built-in node have 0 executors?BeginnerWhat is `JENKINS_HOME` and what are its most important contents?BeginnerWhat happens if you lose the `secrets/` directory but keep `credentials.xml`?AdvancedHow does an agent communicate with the controller?Intermediate