Use following command for jenkins installtion
- sudo apt update
- sudo apt install openjdk-8-jdk
- apt install openjdk-8-jdk -y
- wget -q -O – https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add –
- sudo sh -c ‘echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list’
- apt-get update
- -sudo apt-get install jenkins -y
- systemctl status jenkins
- sudo ufw allow 8080
- give sudo permisssion to jenkins user < /br> vi /etc/sudoers and add below entry jenkins ALL=(ALL) NOPASSWD: ALL and save the file
If you are getting this error
https://pkg.jenkins.io/debian-stable binary/ Release Certificate verification failed:
Then run following command
sudo su
apt update
apt-get install jenkins -y