Java 25 was released on September 16, 2025, as a long-term support (LTS) version. The Jenkins community supports running Jenkins with Java 25 since version 2.541.1 and CloudBees CI supports running in Java 25 since version 2.580.2.38434.
|
Java 25 is the default JDK in CloudBees CI container images starting with version 2.580.2.38434. If you upgrade to CloudBees CI 2.580.2.38434 or later using the default container images, your operations center, controllers, and agents will run on Java 25 automatically, even if you do not change your image tags.
If you are not ready to migrate, you can explicitly opt in to the Java 21 fallback images by using the |
CloudBees has validated the core functionality and all plugins in the CloudBees Assurance Program (CAP) work correctly when using Java 25. Plugins that are not part of the CAP may work, but they have not been verified and may cause issues especially in mixed JVM scenarios.
If you manage your CloudBees CI on modern cloud platforms using Helm charts, both the operations center and controllers are automatically upgraded to Java 25, the same applies to agent images. If you are not using the CloudBees CI agent image, you need to manually update your agent image to include and use Java 25 as the default Java installation. Similarly, shared agents and cloud agents must be manually updated to use Java 25.
Supported configurations
CloudBees performs full test flows with the following supported JDKs or JREs:
-
OpenJDK JDK/JRE 21 - 64 bits
-
OpenJDK JDK/JRE 25 - 64 bits
Action required
CloudBees supports mixed-mode JVM usage in CloudBees CI version 2.580.2.38434 or later, so you can transition to Java 25 without impacting CloudBees CI operations. CloudBees recommends that you migrate to Java 25 as soon as your environment is validated.
To migrate to Java 25, complete the following steps:
Upgrade the JVM used to run CloudBees CI
Upgrade the JVM on all components to Java 25. Because CloudBees CI supports mixed-mode JVM usage, you can perform this upgrade without downtime, and the upgrade order is flexible.
-
Upgrade all agents (permanent and cloud agents) to Java 25. If you use custom build agents, update those podTemplates to Java 25.
Upgrading to Java 25 only affects the runtime processes. Build jobs can continue to use different JDK versions (for example, 8, 11, 17, 21, or later) via container (for example, Docker) or VM definitions, tool locations, or environment variables in the build configuration (for example, a Jenkinsfile). -
Upgrade all controllers to Java 25. If you use Helm charts, controllers are automatically upgraded to Java 25. If you have customized your deployment images, update them to use the
-jdk25image tag, or pin to the-jdk21image tag to remain on Java 21 while you prepare to migrate. -
Upgrade the operations center to Java 25. If you use Helm charts, the operations center is automatically upgraded to Java 25. If you have customized your deployment images, update them to use the
-jdk25image tag, or pin to the-jdk21image tag to remain on Java 21 while you prepare to migrate.
| All components must be running Java 25 before proceeding to Upgrade the CloudBees CI software. |
Upgrade the CloudBees CI software
After verifying all components are healthy and running Java 25, upgrade the CloudBees CI software to 2.580.2.38434 or later.
|
-
Upgrade the plugins to support Java 25 and ensure compatibility with the most recent CloudBees CI releases.
CloudBees has verified that all plugins in the CAP run without issue when using Java 25. If you discover a previously unreported issue, contact CloudBees Support. If the issue involves a Jenkins community plugin, CloudBees will report it and can suggest workarounds to avoid a broken plugin.
-
Back up
$JENKINS_HOMEagain after upgrading CloudBees CI and any required plugins.
Monitor the Java versions automatically
CloudBees CI on modern cloud platforms controllers and build agents verify Java requirements and notify users when they are launched using an unsupported version. The Versions Node Monitors plugin also provides detailed Java version monitoring.
JVM version on container images
Starting with CloudBees CI version 2.580.2.38434, Java 25 is the default JDK in all CloudBees CI container images. CloudBees also publishes fallback container images that include Java 21 for customers who are not yet ready to migrate.
CloudBees provides the following naming structure for container images:
-
an image without a suffix uses Java 25 (the default), and is equivalent to using the
-jdk25suffix -
an image with the
-jdk25suffix indicates Java 25 -
an image with the
-jdk21suffix indicates the Java 21 fallback image
|
If you upgrade your CloudBees CI version without explicitly pinning to a |
The Java 21 fallback images are intended to provide a short-term migration window and may be removed in a future release, in accordance with the CloudBees CI Java support policy. CloudBees recommends that you migrate to Java 25 as soon as your environment is validated.
Known issues
Refer to the following sections for any known issues that may affect your migration to Java 25.
JVM version on agents
All agents must run Java 25. You can validate each agent’s version using the Version Node Monitors plugin. This plugin provides information about the JVM version of each agent on the node management screen of your CloudBees CI instance. You can also configure this plugin to automatically disconnect any agent with an incorrect JVM version.
JVM version on operations center shared agents
JVM instances are used to establish the remoting connection between shared agents and controllers, as well as shared agents and the operations center. Additional JVMs could be installed on the agent computer and used as build tools by controller jobs. Those JVMs are irrelevant in this context, and there is no need to update them as part of the CloudBees CI Java 25 migration.
Depending on the launch method and agent configuration, you may have to take additional actions when you upgrade to Java 25.
"Launch agent by connecting it to the controller" launch method
This launch method is also known as an "inbound" agent. It is the agent that initiates the connection to the controller. This configuration also requires the agent computer to initiate the connection to the operations center. This launch method requires two JVM instances. One maintains the connection to the operations center and it is called the shared agent control JVM. The other connects to the controller when the agent is leased, and it is called the agent JVM. Both JVM instances must run Java 25.
"Launch build agents via SSH" launch method
This launch method is also known as an "outbound" agent. It means the controller is initiating the connection to the agent computer via SSH and then automatically starting the agent JVM.
There is no shared agent control JVM involved in this configuration. There is only one JVM, the agent JVM, which must run Java 25. The path to this JVM binary is configurable in the shared agent configurations.
Execute jobs on CloudBees CI
CloudBees CI jobs can be executed on Java versions that differ from the controller/agent runtime Java version. Generally, CloudBees CI allows any version of JRE/JDK to be invoked during the build. That includes executing Java commands from the CLI, as well as installing and executing build steps using a JDK managed by JDK tool installers.