The following are the steps to configure Ant, Maven, and JDK in Jenkins:
- Open the Jenkins dashboard in a browser with the URL
http://<ip_address>:8080
. Go to theManage Jenkins
section and click onGlobal Tool Configuration
.
- Configure Java based on the installation, as shown in the following screenshot. We can install it automatically:
- If Java is already installed, then uncheck the checkbox of
Install automatically
and give theJAVA_HOME
path. If Jenkins, Ant, Maven, and Java are installed on CentOS, the path style will be different than this:
- Download Git installer for Windows and install it on the system. Keep the settings as they are in Jenkins after you click on
Add Git
. If Jenkins, Ant, Maven, and Java are installed on CentOS, the path style will be different than this:
- Click on
Add Ant
and provide aName
andANT_HOME
location. The value that we give in theName
box will be used in build job to identify the Ant version we want to use. This...