Best Jenkins Installation Guide

dev-nnamdi

Nnamdi Kenneth Nwosu

Posted on July 8, 2024

Best Jenkins Installation Guide

After setting Up your ubuntu VM and SSH into it via mobaxterm.
You can click Here For Details on How To.

Step 1: Update Your System:

sudo apt update
sudo apt upgrade -y
Enter fullscreen mode Exit fullscreen mode

Step 2: Install Java:

sudo apt install openjdk-11-jdk -y
Enter fullscreen mode Exit fullscreen mode

Step 3: Add Jenkins Repository and Add the repository key:

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
Enter fullscreen mode Exit fullscreen mode

Step 4: Install Jenkins:

sudo apt update
sudo apt install jenkins -y
Enter fullscreen mode Exit fullscreen mode

Step 5: Checking the Jenkins:

sudo systemctl start jenkins
sudo systemctl enable jenkins
sudo systemctl status jenkins
Enter fullscreen mode Exit fullscreen mode

Step 6: Access Your Jenkins:

your_server_ip:8080
Enter fullscreen mode Exit fullscreen mode

Step 7: Unlock Jenkins:
To unlock Jenkins, you need the initial admin password. Retrieve it by running:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Enter fullscreen mode Exit fullscreen mode

Thank You.

💖 💪 🙅 🚩
dev-nnamdi
Nnamdi Kenneth Nwosu

Posted on July 8, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Best Jenkins Installation Guide
jenkins Best Jenkins Installation Guide

July 8, 2024