Upgrading Jenkins from Java 11 to Java 21

Hello Jenkins Community,

I am currently running Jenkins LTS 2.426.3 on an Ubuntu 22.04 server, which is using Java 11. I am considering upgrading the Java version to Java 21.

Could you please advise if it is possible to upgrade directly from Java 11 to Java 21? Are there any specific steps or considerations I should be aware of during this upgrade process?

Thank you for your assistance.

You should be able to directly upgrade.
The agents that connect to your Jenkins should also be upgraded so that they use the same java version.

2 Likes