Jenkins Setup with Maven Project

Jenkins

We will integrate Jenkins with our maven project.

Tools

Tomcat
Jenkins
Maven

Setup

Download tomcat from –
—http://tomcat.apache.org/download-80.cgi

Download Jenkins.war from –
—http://jenkins-ci.org/

Download maven from –
—http://maven.apache.org/download.cgi

Maven Setup –

Extract maven on local drive (F:\ci\maven)
Set M2_HOME as F:\ci\maven
Set M2= %M2_HOME%\bin
Add %M2% in Path variable
Make sure JAVA_HOME is set
Check maven on console using “mvn –version”

Tomcat Setup –

Extract tomcat on local drive (F:\ci\tomcat)

Jenkins Setup –

Open webapps folder of Tomcat
Place Jenkins.war on webapps folder

Start Jenkins –

Open “bin” folder of tomcat
Execute “startup.bat” file
Open browser and hit the url : http://localhost:8080/jenkins

Configure Jenkins –

Add JAVA_HOME
Add MAVEN_HOME
Add ANT_HOME

Maven project in Jenkins –

Create New maven  project
Copy Local Project to jenkins workspace
Build Project

That’s it.

Enjoy your continuous automation testing with Jenkins. 🙂

To see the steps please watch this video  –

Thank you!

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *