What Is Jenkins And How To Set It Up On A Windows Machine

What is Jenkins?

Jenkins is an open source extensible automation tool written in Java using which we can build a server for Continuous Integration. We can also use it for the continuous delivery hub of a project.

Whenever the development team check-in code to source control repository, Jenkins start the Continuous Integration by picking up the changed source code and triggering a build and runs unit tests if any.
Jenkins 
If the build fails, then the team will be notified.

If the build is successful, then Jenkins deploys the build in the test server or any pipeline configured.

History behind Jenkins

Kohsuke Kawaguchi is the man behind the Jenkins, Hudson was the earlier name and version of current Jenkins. 
Jenkins

the word 'Jenkins' means butler (the chief manservant) which can get your task done according to your order. 

Prerequisites to run Jenkins

JDK 1.8 version or Above.

Set-up Jenkins on Server

To install Jenkins below is the process

Step 1

Go to Jenkins website and click on download.

Jenkins 

Step 2

There are options to download for Mac OS, Ubuntu, Windows Etc.

Here, we will choose windows and download the setup file. 

Jenkins

Jenkins 

Jenkins
Step 3

Once you have downloaded the file, click on the Installer file. It will open the below dialog box, Just click on 'Next' button.

Jenkins 

Step 4

Select the path where you want to install Jenkins and follow the instructions.

Jenkins 

Step 5

Click on Install, run as an administrator right.

Jenkins 

Jenkins

Once done, click on finish to complete the setup.

Jenkins

It will open the URL: http://localhost:8080

It will take some time to load.

Step 6

Once done, it will ask to copy and enter the admin password form the given location as shown in below screen. Copy the password and click on 'Continue' button.

Jenkins

Step 7

After that it will ask install plugin for Jenkins, here we have two options one for Install suggested plugins that are sets of plugins required for Jenkins and second for select the plugins that you want to install manually. here we will go with option one that is Install
Suggested Plugins.

Jenkins

Once you click on  Install Suggested Plugins, it will automatically start the installation as per below screen for the default Plugins.

Jenkins

You can see the progress of that as per below screen.

Jenkins

Step 8

Once setup has done it will ask to create the first admin user, here you have to enter admin user Details then click on 'Save and Continue'

Jenkins 

That's It, Your Instance is ready to use, you can navigate and check all stuff. Click on 'Save and Finish' button.

Jenkins 

Jenkins

You will navigate to the dashboard, from here you can manage New Jobs, Workspace, and other settings for CI and CD.
 
Jenkins

Main Features of Jenkins
  • Opensource - It's Opensource and free to use.
  • Easy Installation and Configuration - The Installation and Configurations are easy and user user-friendly. 
  • Plugin Based - We can install a number of plugins based on requirements for the project.
  • Extensible - We can extend via its Plugin Architecture 
  • Distributed - We can easily distribute work across multiple machines and deployments across multiple platforms faster. 
Jenkins 

As per the survey by Rebel Labs, most of the organizations are choosing Jenkins for CI-CD.

Hope you like the article, Give you feedback, Comments, Suggestions in the comment box. In my next article, we will explore Jenkins in detail. 


Similar Articles