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 will 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”.
Arabic numeral. Set the environment variable path for JDK
- Go to System Properties. In the “Advanced” tab, select “Environment variables”.
- 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.
- command prompt and type the following to check if Java has been installed correctly:C:UsersSimplilearn>java -version
Go to the
- 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.
- On the General tab, give a description like “This is my first job at Jenkins.” 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.
Congratulations, you just installed Jenkins on your Windows system!
Become a DevOps expert 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.