Home page

Monday, December 2, 2019

Do JAVA and Maven configuration in Jenkins

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

No comments:

Post a Comment