Post Title:
Steps to install Jenkins
Post Category:
Share:

Table of Contents

Introduction

Hello and welcome back Jenkins knowledge seekers. In this article, we are going to cover various steps to install Jenkins in your local system. Before we start off with the process, we recommend checking the minimum system requirement that you must have in order to set up and install Jenkins.

Steps to install Jenkins

To install Jenkins on your system, you’ll need to follow certain steps. Below are steps for installing Jenkins on various operating systems –

Install Java

Jenkins requires Java to run. You must ensure that you have Java installed on your system. You can install OpenJDK or Oracle JDK.

Choose Installation Method

Installing Jenkins on Windows:

  • Download the Windows installer for Jenkins from the official Jenkins website: https://www.jenkins.io/download/
  • Run the installer executable (.msi file).
  • Follow the installation wizard, selecting the appropriate options. You could choose to install Jenkins as a Windows service or as a standalone application.
  • Once installed, Jenkins would run on http://localhost:8080 by default.

Installing Jenkins on macOS:

  • You could use Homebrew to install Jenkins on macOS.
  • Open Terminal and run the following commands:
brew update
brew install jenkins
  • After installation, you can start Jenkins using:
brew services start jenkins

Installing Jenkins on Linux:

  • The installation steps can vary depending on the Linux distribution you’re using. Below are general steps for installing Jenkins on Ubuntu and CentOS:
  • Ubuntu:
sudo apt update
sudo apt install openjdk-11-jdk
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install jenkins
  • CentOS:
sudo yum install java-11-openjdk-devel
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum upgrade
sudo yum install jenkins
Access Jenkins

Once Jenkins is installed and running, you can access it through a web browser by navigating to http://localhost:8080.

Unlock Jenkins

During the first access, you will be prompted to unlock Jenkins. To do this, retrieve the initial admin password from the Jenkins installation directory and paste it into the setup wizard.

Customize and Complete the Setup

Follow the on-screen instructions to customize Jenkins settings and install recommended plugins or select your own. After setup, you can create an admin user and start using Jenkins.

Conclusion

To conclude this article, we saw how to install Jenkins on various platforms like Windows, macOS, and Linux. Always remember Jenkins may have specific requirements or considerations based on your environment. It’s a good practice to refer to the official Jenkins documentation for detailed installation instructions and troubleshooting.

Direct link for troubleshooting tips 👉 https://www.jenkins.io/doc/book/installing/

Still, if you have any questions & queries 🤔 please comment them below and we would try our best to answer them at the earliest.

HAPPY LEARNING!! 😊


Article Tags :
Share this article :
You may also like to read related similar posts

Leave a Reply