Jenkins installation on ubuntu OS

Use following command for jenkins installtion

  • sudo apt update
  • sudo apt install openjdk-8-jdk
  • apt install openjdk-8-jdk -y
  • wget -q -O – | sudo apt-key add –
  • sudo sh -c ‘echo deb 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 binary/ Release Certificate verification failed:

Then run following command

sudo su

apt update

apt-get install jenkins -y