How To Install Jenkins on Windows in 6 Simple Steps

Continuous integration is a major component in theĀ DevOps lifecycle. It makes the development, testing, and deployment of applications easier and faster.Ā 

There are several continuous integration tools like Bamboo, Apache Gump, Jenkins, Buildbot, and Travis CI. Among them,Ā Jenkins is the most popular continuous integration tool. Jenkins enables continuous development, testing, and deployment of newly created codes.

In this article, you'll learn how to install Jenkins on Windows.

Learn server automation, continuous integration, distributed system in Jenkins with the CI/CD Pipelines with Jenkins Certification Training Course. Enroll now!

6 Steps to Install Jenkins on Windows

1. Install Java Development Kit (JDK)

  • DownloadĀ JDK 8Ā and choose windows 32-bit or 64-bit according to your system configuration. Click on "accept the license agreement."Ā 

2. Set the Path for the Environmental Variable for JDK

  • Go to System Properties. Under the "Advanced" tab, select "Environment Variables."Ā 
  • Under system variables, select "new." Then copy the path of the JDK folder and paste it in the corresponding value field. Similarly, do this for JRE.
  • Under system variables, set up a bin folder for JDK in PATH variables.Ā 
  • Go to command prompt and type the following to check if Java has been successfully installed:
    C:\Users\Simplilearn>java -version

Improve Your Earning Potential Further!

DevOps Engineer Masters ProgramExplore Program
Improve Your Earning Potential Further!

3. Download and Install Jenkins

  • Download Jenkins. Under LTS, click on windows.Ā 
  • After the file is downloaded, unzip it. Click on the folder and install it. Select "finish" once done.

4. Run Jenkins on Localhost 8080

  • Once Jenkins is installed, explore it. Open the web browser and type "localhost:8080".Ā 
  • Enter the credentials and log in. If you install Jenkins for the first time, the dashboard will ask you to install the recommended plugins. Install all the recommended plugins.

5. Jenkins Server Interface

  • New ItemĀ allows you to create a new project.
  • Build HistoryĀ shows the status of your builds.
  • Manage SystemĀ deals with the various configurations of the system.

6. Build and Run a Job on Jenkins

  • Select a new item (Name - Jenkins_demo). Choose a freestyle project and click Ok.Ā 
  • Under the General tab, give a description like "This is my first Jenkins job." Under the "Build Triggers" tab, select add built step and then click on the "Execute Windows" batch command.Ā 
  • In the command box, type the following: echo "Hello... This is my first Jenkins Demo: %date%: %time% ". Click on apply and then save.Ā 
  • Select build now. You can see a building history has been created. Click on that. In the console output, you can see the output of the first Jenkins job with time and date.Ā 

Congratulations, you've just installed Jenkins on your Windows system!

Earn 40% More Than Non-Certified Peers

Lean Six Sigma Expert Masters ProgramEnroll Now!
Earn 40% More Than Non-Certified Peers

Become a DevOps Expert

Are you preparing for a career in DevOps? Simplilearn'sĀ DevOps Certification Training CourseĀ bridges the gap between software developers and operations. You'll become an expert in the principles of continuous development and deployment, automation of configuration management, inter-team collaboration, and IT service agility, using modern DevOps tools such as Git, Docker, Jenkins, Puppet, and Nagios. DevOps jobs are highly paid and are in high demand, so start on your path today.

To know more about Jenkins, you can check out the Jenkins Certification Training Course and learn server automation, continuous integration, and configuration tools.Ā 

About the Author

Sayeda Haifa PerveezSayeda Haifa Perveez

Haifa Perveez is passionate about learning new technologies and working on them. She is an engineer who loves to travel, read and write. She's always curious about things and very determined to track the latest technologies and the trends that they are creating for the future.

View More
  • Disclaimer
  • PMP, PMI, PMBOK, CAPM, PgMP, PfMP, ACP, PBA, RMP, SP, and OPM3 are registered marks of the Project Management Institute, Inc.