In the terminal commodity regarding Jenkins's overview, nosotros discussed the introductory aspects of Jenkins. At present, let's starting time with the actual practical implementation of Jenkins. As a part of information technology, firstly, we demand to know the installation procedure of Jenkins on dissimilar operating systems based on our needs. Let'due south start our journey by understanding how to install Jenkins?  by covering the details under the post-obit topics:

  • What are the pre-requisites for the installation of  Jenkins?
    • Hardware Requirements.
    • Software Requirements.
  • How to install Jenkins?
    • How to install Jenkins on Windows?
    • And how to install Jenkins on macOS?
    • How to install Jenkins on Linux?

What are the pre-requisites for the installation of Jenkins?

As we all know that before the installation of any tool, we need to check some pre-requisite. So, before the installation of Jenkins, let's understand the pre-requirements needed for Jenkins' successful installation and usage:

Hardware Requirements

The below tabular array lists the minimum hardware requirements, which need to be present on a car on which we are planning to install the Jenkins:

Resource Requirement
RAM 256 MB
Bulldoze Space one GB (10 GB if Jenkins is running as a Docker container)

But these are the minimum requirements, which will never suffice when we will be running multiple jobs on Jenkins, then mostly following are the minimum recommended hardware configurations, which can work well with a small-scale team:

Resource Requirement
RAM 1 GB
Drive Space fifty GB

Nonetheless, the call out is that these requirements will be different for each team depending on the team'south size, the parallel users of Jenkins, and the number of jobs running on the Jenkins server.

Software Requirements

The below table lists the minimum software requirements, which demand to exist present on a auto on which we are planning to install the Jenkins:

Java Java Development Kit (JDK) or Java Runtime Environment (JRE). Kindly refer to the tutorial How to Install Java.
Web Browser Whatsoever of the browsers such as Google Chrome, Mozilla Firefox, Microsoft Internet Explorer, Microsoft Edge, Safari
Operating Organization Jenkins supports almost all the modern operating systems such as Windows, macOS, Linux flavors such as Red Hat, Ubuntu, OpenSUSE, Gentoo, etc.

Alright, then afterwards checking the pre-requisite, let's move towards the installation part in the adjacent section.

How to install Jenkins?

So, permit's start the installation process of Jenkins. Kindly follow the steps mentioned below:

Footstep 1: Firstly, get to the official Jenkins website and click on the Download push button.

Jenkins official website

Step ii: Secondly, later on clicking on the Download push, we will be redirected to the download page. Additionally, here we tin can see all the download related data, as shown beneath:

Release Types of Jenkins

As we tin see, Jenkins produces two releases, i is a stable release, and the other ones are the regular problems fixes, which comes every calendar week. But below the above section, it lists the latest stable (shown by marker 1 ) and the latest hotfix release (shown by marker 2 ) for all the platforms as shown below:

Installers of Jenkins

Stride 3: Thirdly, nosotros volition see the list of operating systems for which Jenkins is bachelor as an installer. Based on the operating organisation, nosotros tin select the corresponding choice. Here, we are going with Generic Coffee Parcel (.war) file, a generic file that can prepare Jenkins on all the operating systems that have JAVA installed. And then click on Generic Coffee Packet (.war) link highlighted in the prototype below. Consequently, it will download the file.

jenkins.war file downloaded

Pace 4: Fourthly, place this jenkins.war file in any directory in your machine. Now open the command prompt and become to that directory and type the below command:

Coffee –jar jenkins.war

Step five: Fifthly, later on typing the in a higher place control, press the Enter key. Wait for some time, and y'all volition see the beneath screen in which you will get the bulletin like "Jenkins Initial setup is required. An admin user creation completes and a countersign generates ".

Initial Admin Password

Copy that password and save it somewhere on your machine. Moreover, kindly note that this password is different for anybody, and this is required to enter merely once. Finally, you will meet a message indicating, "Jenkins is fully up and running".

Note: Don't close this concluding window till you are working with Jenkins because we are running Jenkins from the command line, and if we close this, the service will be killed.

However, if we want to run the Jenkins service in the background, employ the beneath command, and the process volition keep running even if we close the terminal window.

java –jar Jenkins.war &

Step 6:  Now open the browser and navigate to URL: http://localhost:8080/ After that, printing the Enter fundamental, and y'all will see the below page for the commencement fourth dimension by default.

First Screen of Jenkins

7th Step:  Here, we demand to put that password that we copied from the previous pace and click the continue push.

Putting admin password and click continue button

Stride 8: As before long every bit you click on the Continue push, you will be redirected to the page to suggest you install suggested plugins. After that, click on "Install suggested plugins". Kindly notation that if users desire to install only selected plugins required, it is recommended to select the option " Select plugins to install".

Install suggested plugin

Stride ix:  After clicking on the suggested plugin push button, the standard plugin installation will be started automatically, as displayed in the below screen:

Plugin installation continued

Pace 10: Finally, after installation of all suggested plugins, you will be redirected to the User Business relationship Page like below:

Create Account

Hither we demand to do the following things:

  • Put username, new countersign that yous want to put.
  • Put ostend password, total proper name, email accost, and click on the "Salvage and Continue"  push.
  • You tin cull the option "Skip and go along as Admin"  located beside the " Save and Go along " button, and in this case, you need to put the aforementioned password that you put in the previous steps. It is always recommended that you lot need to put in a new password according to your selection.

Step 11:  Afterward clicking on the "Save and Continue Button", y'all will be redirected to the case configuration screen. Here click on the "Save and End Button".

Instance Configuration Page

Pace 12:  After clicking, you lot will be redirected to a new screen that will brandish a bulletin similar "Jenkins is Gear up". At present click on the "Start using Jenkins"   button.

Jenkins Ready Message

Step 13:  After clicking on the "Offset using Jenkins " button, you will exist redirected to the Jenkins Dashboard.

Jenkins Dashboard

Alright, so we successfully installed Jenkins. The to a higher place method briefing how to install Jenkins is generic for all the platforms/operating systems. So, no matter which operating system we are planning to install and setup Jenkins, we can download the war file and run it to make Jenkins upward and run.

Autonomously from this generic fashion, Jenkins also provides installers specific to specific operating systems, which can only install Jenkins on a item operating system. Let'due south run into a few of them, how we can use the aforementioned to install Jenkins on specific platforms/operating systems:

How to install Jenkins on Windows?

As we mentioned above, Jenkins provides installers specific to operating systems also. To install Jenkins on Windows, follow the steps as mentioned below:

  1. Firstly, navigate to the Jenkins download page.

  2. Secondly, click on the link to download Jenkins for Windows, as highlighted below:

Jenkins installer for Windows

  1. Thirdly, clicking on the Windows link will download the "msi " installer for Jenkins as shown below:

msi installer for Jenkins

  1. Fourthly, double-click the installer to start the installation of Jenkins; it will bear witness the first screen, every bit shown below:

Installation Wizard on Windows

  1. Fifthly, click on the "Adjacent "   button to start the installation and specify the path where Jenkins will be installed, as shown below:

Path of Jenkins installation

  1. After that, click on the "Next " push button and specify the logon type. Every bit we are installing on a local machine, nosotros accept selected the option to "Run service equally LocalSyste". Moreover, you can specify/ mention the domain user name and password if you want to run Jenkins using system credentials:

Logon type for Jenkins

  1. Seventhly, click on the "Adjacent " button and specify the port on which Jenkins volition exist running:

Port number of Jenkins

  1. Later that, click on the "Test Port " button to validate whether the specified port if costless on your machine or non. Consequently, if the port is free, it volition show a green tick mark as shown below:

Test port in install Jenkins

  1. Ninthly, clicking on the "Side by side " push will check for "Java" on your car and will enquire to install "JDK " if the needed version is not available on your machine:

Path for Java Installation

  1. Click on the "Next " button and Select other services that demand to be installed with Jenkins:

Services with jenkins

  1. Click on the "Install " button to start the installation of Jenkins:

install Jenklns

  1. Additionally, clicking on the "Install " push will show the progress bar of installation, as shown beneath:

Install Progress

  1. In one case the installation completes, click on the "Finish" push to consummate the installation:

Finish installation

  1. Jenkins will exist installed equally a "Windows Service". Yous can validate the same by browsing the "services " section, equally shown below:

Jenkins as a Windows Service

  1. Consequently, once the installation will be done and Jenkins volition be up and running, when you lot scan the link "http://localhost:8080 ", it volition prove the initial screen, as shown beneath:

Initial Screen of Jenkins

From here, you lot can follow the same steps as we did while installing Jenkins with the war file.

How to install Jenkins on macOS?

On macOS, apart from installing and running Jenkins using the generic way of the "war " file, we can install Jenkins using the package manager brew. Follow the steps as mentioned below to install Jenkins on macOS:

  1. First, navigate to Jenkins download page.

  2. Secondly, click on the link to download Jenkins for macOS, as highlighted below:

Download Jenkins for macOS

  1. Thirdly, it volition list all the mash command needed to install Jenkins, as shown below:

Commands to install Jenkins on macOS

  1. Consequently, to install Jenkins on macOS, execute the following control on the terminal:

brew install jenkins-lts

  1. Fifthly, executing the above command will show the output, as shown below:

install jenkins on macOS

  1. Sixthly, one time the installation completes, yous can commencement Jenkins as a service by typing the post-obit control:

>brew services start jenkins-lts

  1. After that, it volition beginning Jenkins as a service and will show the output as shown below:

Started Jenkins as service on macOS

  1. Afterward the installation completes and Jenkins will be upward and running when you browse the link "http://localhost:8080 ", information technology volition show the initial screen, as shown below:

Unlock Screen on macOS

From hither, you lot tin follow the same steps as nosotros did while installing Jenkins with the war file.

How to install Jenkins on Linux?

Installation on Linux depends on which flavor of Linux you are using. Depending on the types of Linux, y'all can employ the wget package managing director to download Jenkins, as per the steps mentioned below:

  1. Showtime, navigate to Jenkins download page.

  2. Secondly, click on the link to download Jenkins for Linus, as per the flavor (such equally Ubuntu, Centos, etc.), equally highlighted below:

Linux installers

  1. Thirdly, suppose nosotros click on the Ubuntu option, information technology will list all the commands to install Jenkins, as shown below:

Commands to install Jenkin on Ubuntu

  1. Fourthly, type the above-mentioned commands on the terminal ane by ane, equally follows: // Download Jenkins package wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -

//Add together the following entry in your /etc/apt/sources.list: deb https://pkg.jenkins.io/debian-stable binary/

// Update Local Package sudo apt-get update

// Install Jenkins sudo apt-go install jenkins

  1. Finally, once the installation will be done, Jenkins will be upwards and running when you scan the link "http://localhost:8080".

Additionally, we can either apply the common mode of running the "war" file on all the platforms or use the corresponding installers as per the platform/operating arrangement's choice to install Jenkins successfully.

Fundamental Takeaways:

  • Before installing Jenkins, kindly check the hardware as well equally software requirements mentioned in the above sections.
  • Additionally, on the Jenkins' download page, download the Jenkins.war file, and we can use this State of war file to run Jenkins on any Os.
  • Lastly, if nosotros want to download installers for specific operating systems, nosotros need to go to Jenkins's download folio and so download and install the respective installers co-ordinate to your Bone.