0
votes

I am using Jenkings on Cloudbees and I would like to change the JDK version to 1.8. I followed the tutorial at developer.cloudbees.com/bin/view/DEV/PreInsatlledJDKs. However, I fail at step 10 -> There is no such option to choose the JDK. Where can I change this?

UPDATE: I made some screenshots to better explain my problem.

This is the jenkins configuration for the JDK. As you can see, I only have one JDK selected and it's Java 8.

However, if I view my "System Information", everything looks like Java 7. It says that "java.home" still points to "/opt/java7/jre" and "java.runtime.version" points to "1.7.0_25-b15" for example.

Not surprisingly, the compilation process of my maven project fails, because for the maven compiler plugin I specified 1.8 as source and target java version.

1
I would ask this to CloudBees support.gareth_bowles

1 Answers

0
votes

If you have one single JDK, then you won't see that option, cause it will pick it up by default.

You will se the JDK option with the drop down menu if you have more than 1 JDK configured in your jenkinsURL/configure.