Jenkins Installation on Linux
Prerequisites
Minimum hardware requirements:
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
There is two ways to install.
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
Steps 3: - Enable 8080 port
By default, Jenkins works on port 8080, So add inbound rule.
Steps 4: - Unlock Jenkins
Open Jenkins https://ServerIP:8080
By default Jenkins initially locked. Password will be stored on this location /var/lib/jenkins/secrets/initialAdminPassword
Steps 5: -Install suggested plugins
Steps 6: - create admin user.
Save and finish
Congratulation we have successfully installed Jenkins on Linux servers.