Jenkins Installation Maven Test

Jenkins Installation is an important concept as this will allow you to run Jenkins.

Jenkins Installation Maven Test

In this blog post we will look at Jenkins Installation and run a Maven test as part of it.

In order to install Jenkins we first need to ensure we have the following:

* Installed Java (http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)
* Installed Maven (https://maven.apache.org/download.cgi)
* Installed Jenkins (https://jenkins.io/) and download the latest war file.

Once you have downloaded the above make sure to set the relevant environments variables in your windows system.

You will need to set the following environment variables:

* JAVA_HOME = path to your Java root directory installation
* MAVEN_HOME = path to your Maven root directory installation
* M2_HOME = path to your Maven root directory installation

Once done you will also need to add the above three to your path variable:

* path =  + ";%JAVA_HOME%\bin;;%MAVEN_HOME%\bin;;%M2_HOME%\bin;"

Once the above is done, open a terminal and type in ‘java -version’ and this should give you a version of Java. Do the same for ‘mvn -version’ and this should return a version for Maven.

With the above done now run the following:

java -jar followed by path to war file

This will start Jenkins, now navigate to localhost:8080 and you should see Jenkins up and running.

Once the above is done simply create a simple Maven project in your choice of IDE and create a new project in Jenkins and run the ‘test’ goal in Maven by also supplying the location to the pom file and that should be it.

If any of the above is confusing then I cover the same tutorial in more detail in my YouTube video link below.

Video Tutorial on YouTube

Jenkins Installation
Direct Video Link

Mo

I am a passionate tester, father, husband and gamer. I love to upload videos on my YouTube channel, write blogs about Software Testing and generally contribute back to the Software Testing world.

More Posts - Twitter - Facebook - Google Plus

Published by

Mo

I am a passionate tester, father, husband and gamer. I love to upload videos on my YouTube channel, write blogs about Software Testing and generally contribute back to the Software Testing world.

Leave a Reply