You are on page 1of 2

A Job Guaranteed Program for Software

Engineers

Visit JALATechnologies.com for more details

Jenkins | Duration: 1 Day

Setting up Jenkins for a Maven Project

Installing the Jenkins

1. Download the latest version of Jenkins Installer and Install it


https://jenkins.io/download/
(Note: create an admin user with admin/admin if system asks to create a user)

2. Navigate to the Dashboard of Jenkins once Installation is completed


http://localhost:8080/
(Note: If Jenkins doesn’t launch, start the Jenkins service, Run command “services.msc”
to see the list of the services running on the system)

3. Change the port number that Jenkins is running on to 8085. Default port number is 8080
but change it to any port number of your wish (ex:8085)

Steps to change:
Open the Jenkins.xml from the Jenkins installation directory.
Search “–httpPort=8080” and replace the “8080” with the new port number that you
wish. i.e 8085

Creating Jobs in Jenkins


4. Click on the New Item for creating a Job and name the Job “MavenJenkins”

5. Select Maven Project radio button and Click OK.


If Maven project radio button doesn’t appear, follow the steps to make it available.
Navigate to Manage Jenkins -> Manage Plugins
Click on Available tab and enable Unleash Maven Plugin

Configuring JDK and Maven


6. Navigate to Manage Jenkins->Global Tool Configuration
Click JDK installations and add JDK available on your system. Click Save.

JALA Technologies offers Job Guaranteed Programs for Fresher’s to 12 years’ experience with salary range of 2-16 lakhs per
annum on JAVA / .Net / Automation Testing / Dev-Ops / Middleware Technologies / WebLogic / JBOSS / Python and for those who
want to be a software engineer in 100 Days. Know more Details at: http://jalatechnologies.com/
A Job Guaranteed Program for Software
Engineers

Visit JALATechnologies.com for more details

7. Navigate to Manage Jenkins->Global Tool Configuration


Add MAVEN_HOME

8. Navigate back to the Dashboard and select the Job created


Click configure->Click Build Tab

Root POM text field: Enter path of the project to pom.xml file
Ex: D:\JAVA_Workspace\MagnusProj\pom.xml
Goal and options Text field: clean test

Running the Job

9. Select the Job created and Click on Build Now link


Maven builds the project and executes the testing.xml suite file configured in the maven
project
Under Build History, A build is generated- Click on the build number
Click console Output link to see the console messages

10. Verify the reports created at


D:\JAVA_Workspace\MagnusProj\target\surefire-reports

Running GUI Tests on Jenkins


Run command Services.msc
Double click and open the Jenkins service
Click LogOn and select the checkbox Allow service to interact with Desktop

JALA Technologies offers Job Guaranteed Programs for Fresher’s to 12 years’ experience with salary range of 2-16 lakhs per
annum on JAVA / .Net / Automation Testing / Dev-Ops / Middleware Technologies / WebLogic / JBOSS / Python and for those who
want to be a software engineer in 100 Days. Know more Details at: http://jalatechnologies.com/

You might also like