Jenkins Tutorials: Jenkins Installation and Configuration Guide

Prerequisites of Jenkins Installation

Minimum hardware requirements:

  • 256 MB of RAM
  • 1 GB of drive space (although 10 GB is a recommended minimum if running Jenkins as a Docker container)

Recommended hardware configuration for a small team:

  • 4 GB+ of RAM
  • 50 GB+ of drive space

Comprehensive hardware recommendations:

Software requirements:

Supported Platforms & Cloud for Jenkins

Java Installation Guide

Port Requirement for Jenkins

Disable the firewall

# Disable and stop Firewall in Cento/RHEL
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo systemctl status firewalld


# Disable and stop Firewall in Ubuntu
sudo ufw disable
sudo ufw status

Jenkins Installation Guide in RHEL/Centos

To use this repository, run the following command:

  sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
  sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
  

If you’ve previously imported the key from Jenkins, the rpm --import will fail because you already have a key. Please ignore that and move on.

  yum install epel-release # repository that provides 'daemonize'
  yum install java-11-openjdk-devel
  yum install jenkins

Jenkins Installation Guide in Ubuntu

This is the Debian package repository of Jenkins to automate installation and upgrade. To use this repository, first add the key to your system:

    
  curl -fsSL https://pkg.jenkins.io/debian/jenkins.io.key | sudo tee \
    /usr/share/keyrings/jenkins-keyring.asc > /dev/null
  

Then add a Jenkins apt repository entry:

    
  echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
    https://pkg.jenkins.io/debian binary/ | sudo tee \
    /etc/apt/sources.list.d/jenkins.list > /dev/null
  

Update your local package index, then finally install Jenkins:

    
  sudo apt-get update
  sudo apt-get install jenkins

Jenkins Installation Guide with Docker


$ docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts-jdk11
OR
$ docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11
OR
$ docker run -d -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts-jdk11

Install Jenkins in Windows

Step 1- Download a jenkins exec from https://www.jenkins.io/download/
URL – https://www.jenkins.io/download/thank-you-downloading-windows-installer/

Step 2 – Run a Jenkins.msi and follow the steps.

Accessing Jenkins and Configuring

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Astyork
Astyork
6 months ago

This Jenkins Installation and Configuration Guide by Rajesh Kumar provides a comprehensive overview of the necessary steps and prerequisites to set up Jenkins. It’s a great resource for both beginners and experienced users. The inclusion of supported platforms, Java installation instructions, and hardware recommendations is particularly helpful for ensuring a smooth Jenkins setup process. The clear table of contents makes it easy to navigate and find the information you need. Overall, a well-structured and informative guide for anyone looking to install and configure Jenkins. Thanks, Rajesh, for sharing this valuable resource!

1
0
Would love your thoughts, please comment.x
()
x