Skip to content

Fix incorrect guidance that agent JVM must match controller JVM version#8870

Open
devs6186 wants to merge 1 commit intojenkins-infra:masterfrom
devs6186:fix/8691-fix-agent-jvm-version-guidance
Open

Fix incorrect guidance that agent JVM must match controller JVM version#8870
devs6186 wants to merge 1 commit intojenkins-infra:masterfrom
devs6186:fix/8691-fix-agent-jvm-version-guidance

Conversation

@devs6186
Copy link

Summary

Three Java upgrade guides incorrectly stated that agents must run the same JVM version as the controller. This is inaccurate: agents only need to satisfy the minimum Java version required by the running Jenkins version. They do not need to match the controller's exact major version, though running the same major version reduces serialization risks.

Motivation / Issue

Closes #8691

Changes Made

  • content/doc/book/platform-information/upgrade-java-to-11.adoc: Updated the "JVM version on agents" section to replace "must run the same JVM version" with the correct minimum-version requirement language.
  • content/doc/book/platform-information/upgrade-java-to-17.adoc: Same correction applied.
  • content/doc/book/platform-information/upgrade-java-to-21.adoc: Same correction applied. Also clarified the description of the checkNodes diagnostic script, which checks version parity but whose output does not imply agents are required to match exactly.

Testing / Verification

Notes for Reviewers

The fix is based on the analysis in issue #8691 by @daniel-beck (Jenkins maintainer) and the CloudBees CI documentation. The added note about same-major-version being recommended reflects the nuanced comment by @jtnord in the issue thread about serialization risks.

Three upgrade guides stated that agents must run the same JVM version as
the controller. This is inaccurate: agents only need to satisfy the
minimum Java version required by the Jenkins version running on the
controller. They do not need to match the controller's exact (or major)
version, although running the same major version reduces the risk of
serialization incompatibilities.

Update the "JVM version on agents" sections in all three Java upgrade
guides (Java 11, 17, and 21) with the corrected language. Also clarify
the description of the checkNodes diagnostic script in the Java 21 guide.

Fixes jenkins-infra#8691
@devs6186 devs6186 requested a review from a team as a code owner February 19, 2026 22:43
@probot-autolabeler probot-autolabeler bot added the documentation Jenkins documentation, including user and developer docs, solution pages, etc. label Feb 19, 2026
Comment on lines +32 to +35
The `checkNodes` script determines what version of Java is running the controller process, along with the version of Java on each connected agent.
When the agent Java version matches the controller Java version, the result shows `OK`.
Otherwise, the result displays the controller Java version and the version found on the agent.
Use this script to identify agents that may need a Java upgrade.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these changes needed in this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Jenkins documentation, including user and developer docs, solution pages, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix guidance for agent JVM versions needing to match controller JVMs

2 participants