1.0 Environment Preparation

Jenkins is an application based on JAVA.

Therefore, it can run under a variety of operating system environments.

I will deploy in the Linux environment, based on Ubuntu 22.04.

The life cycle of Ubuntu 22.04 is still very long, and the service of versions lower that this will gradually stop due to the life cycle.

1.1 Server

Memory: 8GB, (4GB+ recommended)

HardDisk: 200GB, (50GB+ recommended)

1.2 OS

You must first deploy the Ubuntu 22.04 operating system, beacuse I like it, you can deploy other OS.

apt update
apt -y upgrade



1.3 JAVA Environment

apt install -y openjdk-11-jdk
java --version


2.0 Jenkins installation

2.1 APT Repository

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

2.2 Jenkins install

apt install -y jenkins


2.3 Jenkins Service

2.3.1 Start
systemctl start jenkins
2.3.2 Background Services
systemctl enable jenkins
2.3.3 Status view
systemctl status jenkins
2.3.4 Stop
systemctl stop jenkins

3.0 Jenkins Setup

To set up your installation, visit Jenkins on its default port: 8080, using your server domain name or IP addresss:


3.1 Brower Jenkins

You should receive the Unlock Jenkins screen, which displays the location of the initial password:


In the Linux Server, use the cat command to disply the password:

cat /var/lib/jenkins/secrets/initialAdminPassword

3.2 Configure Proxy

Beacuse internal network can't access the public network normally.

You can also skip it and configure it later.


3.3 Install plugins

Network reason, we need skip plugin installations.


3.4 End setup

We installed the Jenkins application, you can use it.


4.0 Plugin install

Beacuse network reason, we need offline install the jenkins plugin.

Jenkins must cooperate with plugging to make better use of Jenkins.