LightBlog

Jenkins Configuration - Java, Maven



Change Jenkins PORT number
Some times 8080 is busy with some other services. In that case we can change port to some other number by using following steps

1.Press Ctrl+C on Jenkins command line to Stop the Service

2.It it is Jenkins.war Installation, Start Jenkins from cmd line using :
java -jar jenkins.war --httpPort=8081

3.If is tomcat Installation, open xml & change "--httpPort=8080" with new port number


Configuring Java

1.Navigate to Manage Jenkins Global Tool ConfigurationJDK Installations Add JDK

2.Set JDK Name. For Ex: JDK_1.8.0_111 (uncheck Install automatically)

3.Set JAVA_HOME directory path. For Ex: C:\Program Files\Java\jdk 1.8.0_111

4.Apply & Save.


Configuring Maven
1.Navigate to Manage Jenkinks Global Tool Configuration Maven Installations Add Maven

2.Set Maven Name. For Ex: apache-maven-3.3.9 (uncheck Install automatically)

3.Set MAVEN_HOME directory path. For Ex: C: \apache-maven-3.3.9
4.Apply & Save

Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 comments:

Post a Comment