This content originally appeared on DEV Community and was authored by Sashi Kapoor
Step-1 Install Java
Update your system
Install java
sudo apt install openjdk-21-jre
java -version
It should look something like this after running the command
openjdk version "21.0.1" 2023-10-17
Step-2 Install Jenkins
The commands you provided are used to add the Jenkins repository and its GPG key to your system, specifically for Debian-based Linux distributions.
Add Jenkins GPG Key:
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
**
- Add Jenkins Repository to APT Sources:**
echo "deb http://pkg.jenkins.io/debian-stable binary/" | sudo tee -a /etc/apt/sources.list.d/jenkins.li
sudo apt-get update
sudo apt-get install jenkins
sudo systemctl enable jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
Open your web browser and enter the following URL in the address bar:
Setup Jenkins
Set an Admin Password to use Jenkins: Copy the command below and paste it on a terminal and you will get your Admin Password.
/var/lib/jenkins/secrets/intialAdminPassword
** Install suggested plugins**
** Create a Username and Password**
Keep it running on the default URL
This content originally appeared on DEV Community and was authored by Sashi Kapoor
Sashi Kapoor | Sciencx (2024-06-25T04:50:20+00:00) how to install jenkins on ubuntu. Retrieved from https://www.scien.cx/2024/06/25/how-to-install-jenkins-on-ubuntu/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.