Requirements

  • 256MB RAM
  • 1 GB of disk space ( 10GB if running as a Docker container )
  • Java 11 or 17
  • Modern web browsers ( Google chrome, Apple safari, Mozilla Firefox, Microsoft Edge )
  • Port 8080.

N.B: These requirements are good starting point for Dev and Test purposes.

Steps to install Jenkins

  • It is always good to install from Jenkins official website
  • Select your OS, since I am running on Ubuntu, I will select Linux
  • I will be installing Java first because Jenkins require Java to run by using the following command:
sudo apt update

sudo apt install fontconfig openjdk-17-jre

java -version

openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment (build 17.0.13+11-Debian-2)
OpenJDK 64-Bit Server VM (build 17.0.13+11-Debian-2, mixed mode, sharing)

Image description

  • Next is to install Jenkins by running the following command for LTS release:
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

To test if Jenkins is running, use this command:

service jenkins status

Image description

  • Next is to verify Jenkins UI by visiting your browser and search for:
:8080

If you are using a linux, your ubuntu server ip address is located in Wifi settings.
Image description
Image description
The password is located in this location: /var/lib/jenkins/secrets/initialAdminPassword.
Use cat command to view the password
Image description
Copy, paste the password and click continue
Image description
Select install suggested pluggins and wait for them to install
Image description
Once the installation is complete, you will be taken to Create First Admin User page, fill the required details and click save and continue
Image description
Image description
Click save and finish
Image description
Click Start using Jenkins and it will take you to Jenkins Dashboard.
Image description

Thanks for staying till the end