Jenkins: Global tools configuration

Buwaneka Ranmal
2 min readDec 3, 2022

--

Here we will discuss how to configure basic tools used for Pipeline development.

Pre-requisites: Environment with Jenkins (Refer to Jenkins documentation)

Jenkins dashboard

To configure these tools first select Manage Jenkins on the Jenkins dashboard and go to the Global Tool Configuration page.

The below tools are listed under Global Tool Configuration by default.

  • JDK
  • Build tools: Maven, Gradle, and Ant
  • Source code management: Git, Mercurial

For example, we will be discussing how to install maven using Global Tools Configuration.

Installing Maven

  1. Go to the Maven section under Global Tool Configuration.
Global Tools Configuration window in Jenkins dashboard
Global Tools Configuration

2. Then click on Add Maven to configure the maven installation.

3. Then give an appropriate name in the Name field.

4. In the Add Maven section, you can tick the Install automatically box to let Jenkins install the tools automatically. When you tick on the Install automatically box, a separate section will be enabled to add the installer. The Install from Apache option will be enabled as the default installer. Other than that there are some other installer options as well.

Available maven installer options

5. If you select Install from Apache as the installer option then you will be given a drop-down to select the maven version you need.

6. After selecting the version you need, click on the Save button at the bottom of the page.

Maven installation configuration

Here you can configure multiple maven versions as well.

Configuring maven installation with two versions

That's all about the maven installation configuration on Jenkins.

Happy building…!!

--

--