...">

Cannot find JDK and Maven settings in Jenkins

I'm new to Jenkins, and I'm trying to set up my local JDK and Maven locations under "Manage Jenkins"> "Customize", but I don't see these sections on the page. How to make them visible?

Jenkins - System Setup enter image description here

+7
source share
6 answers

JDKs and Maven are managed and defined in the section "Managing Jenkins" β†’ "Global Tool Configuration" β†’ "JDK Settings" and "Maven Settings"

+8
source

In Jenkins 2.46 and higher:

Go to Jenkins Management> Global Tool Configuration.

On this page, you can individually add the JDK and Maven paths by clicking on the JDK ... and Maven ... settings respectively.

+1
source

Find JDK and Maven on the configuration page, you will find this place.

Jdk setup example

Maven setup example

0
source

In: Jenkins Management> Global Tool Configuration, find the JDK

  1. To install local JDK files, uncheck "Install automatically", then you can insert a local file in JAVA_HOME

  2. To download automatically, select the option "Add installer"

I tried both methods, but only the first one works for me. Hope this helps.

0
source

JDK and Maven are managed and specified in the section "Managing Jenkins" β†’ "Global tool configuration" β†’ "JDK settings" and "Maven settings": - this helped to provide the required version of JDK using the drop-down list option and once we start building any project, jenkin will automatically load jdk and a compilation error will not appear.

0
source

JDK and Maven configurations can be configured in Jenkins using the "Manage Jenkins β†’ Global Tool Configurations" menu.

0
source

All Articles