Sunday, May 29, 2022

Jenkins Installation - On ubuntu

  • 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
NOTE:- IN CASE IF YOU GET A CERTIFICATE ERROR THEN RUN THE BELOW COMMAND
               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

0 comments:

Post a Comment