Install Jenkins ( DevOps ) On Windows Machine Step By Step

In this article, we will learn how to install and set up Jenkins on a Windows machine.

What is Jenkins? 

First of all, let's try to understand what Jenkins is. As per Jenkins official website, Jenkins is the leading open source automation server that provides hundreds of plugins to support building, deploying, and automating any project. In other words, you can say that Jenkins is a Continuous Integration (CI) Server or tool which is written in Java. It provides Continuous Integration services for software development, which can be started via command line or web application server. For more details, refer to the URL - https://jenkins.io/doc/

If you are planning to take advantage of TDD automation with Jenkins in order to run automated tests as part of build process, it is relatively easy to run TDD tests as part of the Jenkins build, with testing frameworks, like Xunit or NUnit or MSTests in place. We will look into these articles soon.

Below are the advantages of Jenkins
  1. It's an open source tool with great community support.
  2. Easy to install; and it has a simple configuration through a web-based GUI, which speeds up the Job.
  3. It has around 900+ plugins to ease your work. If a plugin does not exist, just code it up and share with the community.
  4. It is built with Java and hence, it is portable on all major platforms.
  5. Good documentation and enriched support articles/information available on the internet which will help beginners to start easy
The below are some common uses of Jenkins.
  1. Building snapshot and releasing artifacts for your application.
  2. Deployment of the released artifact with custom scripts.
  3. Continuous integration pipeline support for establishing a software development life cycle workflow for your application.
  4. Support for scheduled builds & automation test execution.

What can Jenkins Do?

  1. Can associate Jenkins with a version control server.
  2. Can trigger builds by polling, Periodic etc.
  3. Can execute bash scripts, Shell scripts, ANT and Maven Targets.
  4. Can Publish results and send email notifications.
Step 1

Download Java SE Runtime Environment - Download (Make sure JRE is installed)

Step 2

Install JRE, click on the downloaded EXE from step 2 and follow all the instructions suggested by the installer, with default options for now.

Check if JRE is installed on your machine by command line -  $ jave -version as in the below screen.

Jenkins

Step 3

Download Jenkins - Download.

Step 4

Install Jenkins, click on the downloaded EXE from step 1 and follow all the instructions suggested by the installer, with default options for now. After Jenkins installation, the Jenkins Web UI will be launched in the web browser as below screen.

Jenkins
Jenkins

Step 5

If you open the "initialAdminPassword" file in any text editor from the location (C:\Program Files (x86)\Jenkins\secrets), you will see content like the below screen.

Jenkins

Just copy and paste in "Administrator Password" input box. Once you entered the password and clicked on "Continue" button. 

Jenkins 

Step 6

Now, you will be redirected to the page as shown in the below screen.

Jenkins 

Here, you have two options : 
  1. Install suggested plugins.
  2. Select plugins to install. 
Step 7

For now, select "Install suggested plugins" and click on it. You will be redirected to the page as below screen.

Jenkins 
Step 8

Now, you can see the recommended tools and plugins are being downloaded. Some of them have been downloaded already while others are being downloaded.

Once all the tools and plugins have been installed, you will be redirected to the page as below screen.

Jenkins 
Step 9

From the above window, you can create the first Admin user. Now, fill the above field and click on "Save and Continue" button. You will be redirected to the page as below screen.

Jenkins 

Step 9

Click on "Save and Finish" button. You will be redirected to the page as in the below screen.

Jenkins 

Step 10

Now, click on "Start using Jenkins" button. You will be redirected to the page as on the below screen.

Jenkins 

Step 11

Done.

If you are able to see the above screen it means Jenkins has successfully installed on your window machine.

Congratulations!  You have successfully installed and set up Jenkins on a Window machine. If you have any query or concern, just let me know or just put in the comment box and I will respond as soon as possible. I am open to discussing anything even silly questions as well. If you have any suggestions related to this article, please let me know and I promise I will improve this article to a maximum level.


Similar Articles