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:
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!
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.