Maven Slave Image for Jenkins on OpenShift with Java 11.
Similar to the "official" image but using:
- Maven 3.6.2
- OpenJDK 11
The Docker image is available on Quay:
nmalvankar/jenkins-maven-agent-jdk11
The Openshift Jenkins Repository contains ready to use slave image with OpenJDK 8 but none for Java 11 (see Issue 722).
Create a new image stream in the openshift namespace
oc import-image jenkins-maven-agent-jdk11 --from=quay.io/nmalvankar/jenkins-maven-agent-jdk11 --confirm
In Jenkins administration, add a new Kubernetes Pod Template (or change an existing one) to use the imagestream
image-registry.openshift-image-registry.svc:5000/openshift/jenkins-maven-agent-jdk11