Running Jenkins on Java 11

If you are upgrading the Jenkins JVM version from Java 8 to Java 11, please follow these guidelines.

For simplicity, this document describes how to run the most recent version of Jenkins on Java 11.

Running Jenkins with Docker

The easiest way to run Jenkins on Java 11 is with a Docker image.

To use the latest weekly release of the Java 11-based images, use the jdk11 tag. For other releases, append the -jdk11 tag to the version (for example, 2.284-jdk11).

For example, this command starts Jenkins on Java 11 using the latest weekly release:

docker pull jenkins/jenkins:jdk11
docker run --rm -ti \
  -p 8080:8080 -p 50000:50000 \
  -v jenkins-home:/var/jenkins_home \
  jenkins/jenkins:jdk11

Running Jenkins with Java

As with Java 8, you can start Jenkins using the java command:

java -jar jenkins.war

Discovering issues with Java 11

Between June 2018 and February 2019, the community performed many exploratory tests to discover as many Java 11 issues as possible.

As a result, the community solved a lot of problems before announcing Java 11 support in Jenkins. However, it’s still possible that some plugins haven’t been updated to support Java 11.

Compatibility issues are being tracked in the Jenkins issue tracker as Known Java 11 Compatibility Issues.

If you discover a Java 11 incompatibility, please report the issue in the Jenkins bug tracker using the java11-compatibility label.

For security issues, please use the standard vulnerability reporting process.