Skip to content

Add Java 21 upgrade instructions #8046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 16, 2025

Conversation

kmartens27
Copy link
Contributor

This PR is to add instructions on upgrading to Java 21. It includes the video that Darin Pope has recorded, and step by step instructions on how to perform the upgrade for both the controller and agents. It also adjusts some of the section headings to adjust -ing verbs and phrases.

@kmartens27 kmartens27 requested a review from a team as a code owner April 15, 2025 20:12
@probot-autolabeler probot-autolabeler bot added the documentation Jenkins documentation, including user and developer docs, solution pages, etc. label Apr 15, 2025
@kmartens27
Copy link
Contributor Author

preview deploy link: https://deploy-preview-8046--jenkins-io-site-pr.netlify.app/doc/book/platform-information/upgrade-java-to-21/

Copy link

@kcsmalls kcsmalls left a comment

Choose a reason for hiding this comment

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

LGTM. Left a few comments.

Copy link
Contributor

@gounthar gounthar left a comment

Choose a reason for hiding this comment

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

Fantastic work, Kevin! 🚀

@kmartens27
Copy link
Contributor Author

Thanks @gounthar, I forgot to call out that the installation instructions may change depending on the package manager.

@gounthar
Copy link
Contributor

That was nitpicking from me...

@kmartens27
Copy link
Contributor Author

@gounthar, I know you've already reviewed, but from your experience/what you have on your setup, is the updated Linux installation information accurate as well? I checked it out on my mac but some parts of it will be different since it's providing Debian instructions.

@gounthar
Copy link
Contributor

Yes, @kmartens27 , it did work for my Debian machines. 👍

sudo apt install  temurin-21-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
[...]
The following NEW packages will be installed:
  adoptium-ca-certificates fonts-dejavu-extra p11-kit p11-kit-modules temurin-21-jdk
0 upgraded, 5 newly installed, 0 to remove and 4 not upgraded.
[...]

sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                         Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-21-openjdk-arm64/bin/java   2111      auto mode
  1            /usr/lib/jvm/java-21-openjdk-arm64/bin/java   2111      manual mode
  2            /usr/lib/jvm/temurin-21-jdk-arm64/bin/java    2111      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/temurin-21-jdk-arm64/bin/java to provide /usr/bin/java (java) in manual mode

@kmartens27
Copy link
Contributor Author

Thanks very much for the confirmation @gounthar, I appreciate it greatly.

@gounthar
Copy link
Contributor

You're welcome, Kevin! 😊

@kmartens27 kmartens27 merged commit f578455 into jenkins-infra:master Apr 16, 2025
6 checks passed
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.

3 participants