Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not find JDK and Maven Configuration in Jenkins

I'm new to Jenkins and I am trying to configure my JDK and Maven home locations in Manage Jenkins > Configure, but I do not see those sections in the page. How do how make them visible?

Jenkins - Configure System enter image description here

like image 463
Kunle Avatar asked Aug 10 '16 08:08

Kunle


3 Answers

The JDKs and Maven are managed and specified under "Manage Jenkins" -> "Global Tool Configuration" -> "JDK installations" and "Maven Installations"

like image 182
S'chn T'gai Spock Avatar answered Oct 13 '22 11:10

S'chn T'gai Spock


On Jenkins 2.46 & up:

Go to Manage Jenkins > Global Tool Configuration.

On that page, you can individually add the JDK and Maven paths by clicking on JDK installations... and Maven installations... buttons respectively.

like image 38
captainblack Avatar answered Oct 13 '22 12:10

captainblack


In: Manage Jenkins > Global Tool Configuration, find JDK

  1. To install local JDK files, uncheck "Install automatically", then you can paste your local file location in JAVA_HOME

  2. To download automatically, choose your option from Add Installer

I had tried both method, however only first one works for me. Hope this help.

like image 31
CS_YAN Avatar answered Oct 13 '22 12:10

CS_YAN