Continuous integration is an important component in the DevOps lifecycle. It makes application development, testing, and deployment easier and faster.
There are several continuous integration tools such as 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 code.
In this article, you’ll learn how to install Jenkins on Windows.
6 steps to install Jenkins on Windows
1. Install Java Development Kit (
- Download JDK 8 and choose 32-bit or 64-bit Windows depending on your system configuration. Click “accept the license agreement.”
2. Set the environment variable path for JDK
- Go to System Properties.
- Under System variables, select “new.” Then copy the path of the JDK folder and paste it into the corresponding value field. Similarly, do this for JRE.
- In System variables, configure a bin folder for JDK in PATH variables.
- Go to the command prompt and type the following to check if Java has been installed correctly:C:\Users\Simplilearn>java -version
On the “Advanced” tab, select “Environment variables.”
- Jenkins. Under LTS, click Windows.
- After downloading the file, unzip it. Click the folder and install it. Select “finish” once done.
4. Run Jenkins on Localhost 8080
- Once Jenkins is installed, explore it. Open your web browser and type “localhost:8080”.
- Enter your credentials and log in. If you install Jenkins for the first time, the panel will prompt you to install the recommended add-ons. Install all recommended plugins.
5. Jenkins Server Interface
- New Item allows you to create a new project
- Build History shows the status of builds
- Manage The system deals with the various system configurations.
6. Create and run a job in Jenkins
- Select a new item (Name – Jenkins_demo). Choose a freestyle project and click OK.
- provide a description such as “This is my first Jenkins job.” On the “Build Triggers” tab, select add compiled step and then click the “Run Windows” batch command.
- In the command box, type the following: echo “Hello… This is my first Jenkins demo: %date%: %time%”. Click Apply and then Save.
- Select Compile Now. You can see that a building history has been created. Click on that. In the console output, you can see the output of Jenkins’ first job with time and date.
On the General tab,
Congratulations, you’ve just installed Jenkins on your Windows system!
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 adept at the principles of continuous development and deployment, configuration management automation, cross-team collaboration, and IT service agility, using modern DevOps tools such as Git, Docker, Jenkins, Puppet, and Nagios. DevOps jobs are very well paid and in high demand, so start your journey today.
To learn more about Jenkins, you can check out the Jenkins Certification Training Course and learn automation, continuous integration, and configuration tools.