How To Install Jenkins On Ubuntu 20.04 machine
💪 Buy my awesome golang course – https://akhilsharmatech.gumroad.com/l/zgxqq
👊 Join my FREE discord community to learn new technologies – https://discord.gg/m5zBzzd2
💯 Follow me on twitter – https://twitter.com/AkhilAiri
My New Udemy Course, please enroll – https://www.udemy.com/course/build-3-simple-golang-projects/
add the repository key to the system by fetching it from the remote repo using wget
please ensure that you already have wget installed on your laptop
wget -q -O – https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add –
Next, append the Debian package repository address to the server’s sources.list:
***** IMP – in this command below, put an angled bracket after binary/, youtube doesn’t allow angled brackets in comments so i was unable to place it here.
sudo sh -c ‘echo deb http://pkg.jenkins.io/debian-stable binary/ /etc/apt/sources.list.d/jenkins.list’
sudo apt update
sudo apt install jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
sudo ufw allow 8080
sudo ufw status
http://your_server_ip_or_domain:8080
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
ubuntu 20.04
I am getting the error apt-key is deprecated