Steps to do JAVA and Maven configuration with Jenkins
- Go to Manage Jenkins from options listed on the left side.
- Go to Global Tool Configuration
- Click 'Add JDK' button under 'JDK' panel.
- Uncheck "Install Automatically" checkbox. [This comes bydefault checked to install latest Java version automatically]
- Enter JAVA_HOME in Name textbox.
- Enter jdk folder path path in JAVA_HOME textbox.[e.g; c:\Program Files\Java\jdk1.8.0]
- Scroll down and click 'Add Maven' button under 'Maven' panel.
- Uncheck "Install Automatically" checkbox. [This comes bydefault checked to install latest maven version automatically]
- Enter MAVEN_HOME in Name textbox.
- Enter maven path in MAVEN_HOME textbox. [e.g; D:\Software\Maven\apache-maven-3.4] If it is not installed then first install.
- Click Save button.
No comments:
Post a Comment