Install Jenkins – Continuous Integration Tool

Before we talk about install jenkins, let us understand about what is jenkins first

What is Jenkins?

Jenkins is a Continuous Integration server. (Kind of advanced task scheduler). Basically Continuous Integration is the practice of running your tests on a non-developer machine automatically every-time someone pushes new code into the source repository.

Jenkins can be standalone (Using Jenkins.war file) or hosted (Install as a windows service).

  1. Install Jenkins – standalone client installation using Jenkins.war –

Jenkins Installation:

Prerequisite – 1. Java JDK installed. 2. Tomcat server is configure.

Step01:

Download the jenkins.war file from Jenkins Homepage.  URL:   https://jenkins.io/download/

Open Command Prompt.

Change directory to path where Jenkins.war is present.

Step02:

From this file you can start Jenkins directly via the command line with below code –

java -jar jenkins*.war.

Refer below screen shot.

 

 

 

When you do this process first time, it will take some time, some processes will be running in cmd.

Once you see below message, then Jenkins installation is complete

If you installed Jenkins locally, you find it running under the following URL: http://localhost:8080/

Access the installed Jenkins via URL – http://localhost:8080/

install jenkins

 

 

 

 

 

 

 

2. Install Jenkins – Hosted / Windows as a service

This is very simple to install jenkins as a windows service. Once you have launched jenkins which is installed by using above mentioned steps, Just launch it.
Now Go to Manage plugins, There you can see option as “Install as windows service”. Click on it.
Now, Select your installation directory and click on install.
Once installation is complete, you will see below window.
Once Jenkins is restarted, just go to services in your computer so that you can see that jenkins is started.
Now, next time onwards, you need to install jenkins every time from command prompt. You can enable or disable this from services window, as shown in above image.
Hope this helps.

If you liked this article, please share ...

Leave Comment

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

Looking for learning Framework Development from Scratch? Lookout for Detailed Framework Development videos on YouTube here -

https://www.youtube.com/automationtalks

Get the Framework code at Github Repo: https://github.com/prakashnarkhede?tab=repositories