Jenkins Installation on Linux

Jenkins Installation on Linux

Prerequisites

Minimum hardware requirements:

  • 256 MB of RAM
  • 1 GB of drive space
  • Java software

Steps 1: - Installation of Java

Jenkins requires Java to run.

Update the apt repositories, install OpenJDK 17

sudo apt update
sudo apt install fontconfig openjdk-17-jre        
Article content
Article content

There is two ways to install.

  1. Weekly release- A new release is produced weekly to deliver bug fixes and features to users and plugin developers.
  2. Long Term Support release - Updates will release every 12 weeks, and it is stable.

Steps 2: - We will install long term support release methods.

sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
  https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
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
sudo apt-get update
sudo apt-get install jenkins        
Article content
Article content
Status of Jenkins

Steps 3: - Enable 8080 port

By default, Jenkins works on port 8080, So add inbound rule.

Article content

Steps 4: - Unlock Jenkins

Open Jenkins https://ServerIP:8080

Article content

By default Jenkins initially locked. Password will be stored on this location /var/lib/jenkins/secrets/initialAdminPassword

Article content

Steps 5: -Install suggested plugins

Article content

Steps 6: - create admin user.

Article content

Save and finish

Article content

Congratulation we have successfully installed Jenkins on Linux servers.

To view or add a comment, sign in

Explore content categories