sudo apt-get update sudo apt-get install openjdk-8-jdk sudo java -version sudo wget -qO - https://pkg.jenkins.io/debian-stable/jenkins....
- sudo apt-get update
- sudo apt-get install openjdk-8-jdk
- sudo java -version
- sudo wget -qO - https://pkg.jenkins.io/debian-stable/jenkins.io.key | apt-key add -
- sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
- sudo apt-get update
sudo apt install ca-certificates
- sudo apt-get install jenkins
- systemctl status jenkins
- sudo ufw allow 8080
- give sudo permisssion to jenkins user
- vi /etc/sudoers
- Add below entry
- jenkins ALL=(ALL) NOPASSWD: ALL
- Save the file
COMMENTS