In the last tutorial we learned about Jenkins and got familiar with the concept of Jenkins. Summarizing it in a line Jenkins is an automation server and uses continuous integration and continuous delivery as the pillars. Now not giving too much time on the concept, in this tutorial we will try to Install Jenkins on our Windows operating system and run it. So let’s get started.
Prerequisites for Jenkins
Before you proceed to install Jenkins in your windows system, there are some prerequisites to install Jenkins in your computer.
- You need minimum 256 MB of RAM in your computer or laptop to install Jenkins
- You need at least 1 GB of space in your hard drive for Jenkins.
- Since Jenkins runs on Java, you need either Java Development Kit (JDK) or Java Runtime Environment (JRE). You can also refer the tutorial How to install Java?
How To Download and Install Jenkins on Windows
In this section we will install Jenkins by following the step by step process as mentioned below.
1.Go to the Jenkins official website.
2. Press the download button
Now you can see a bunch of OS for which you can download Jenkins. You can either download Jenkins according to the OS or just download the war file which is a generic file and shown in the below steps. This will install the Jenkins through Java but you should have Java installed for this. For this tutorial we will be downloading and installing Jenkins through the generic war file.
3. Download the Generic Java Package (war file) located the end of the list
4. You will see the file downloading which is about 71 MB in size
5. Remember the directory in which you have downloaded the file.
6. Go to the shell of your system and navigate to the directory in which you downloaded the file.
7. Type the following command:
java -jar jenkins.war
Note: Make sure that you run the above command in the folder where did you install the Jenkins.war.
8. Now you can see that Jenkins has started installing. After installation you will see the password of your Jenkins, which is required in the later steps, so you better copy it.
Note: Everyone will have a different password and this is required to enter only once.
9. Open port 8080 in your browser by typing the following in your browser
10. You will see Jenkins running on your system with it’s first time default page. Paste the same password, copied from above step. Press Enter.
NOTE: If you can’t copy from your shell, you can visit the directory which is shown on the page in pink colour and open the file initialAdminPssword with any text editor and then copy it from there.
11. You will be redirected to this screen where you are asked about the plugins. Just press Install suggested plugins and let them install.
12. After all the plugins are installed, you will be redirected to the account creation page
You can Continue as Admin or you can fill the details for further logins. If you Continue as Admin, you would be required the same password that we just entered to initialize Jenkins.
After you press either of the button, you will see that Jenkins has been successfully set up on your system. Now the base work is all set up and we will continue to our next tutorial in which we will try to run a Postman collection using Jenkins.