Jenkins: Global tools configuration
Here we will discuss how to configure basic tools used for Pipeline development.
Pre-requisites: Environment with Jenkins (Refer to Jenkins documentation)
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
- Go to the Maven section under Global Tool 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.
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.
Here you can configure multiple maven versions as well.
That's all about the maven installation configuration on Jenkins.
Happy building…!!