Installing Jenkins in Ubuntu 18.04.2

·

1 min read

Login as a user who has sudo privileges

 38  sudo apt update
   39  sudo apt install openjdk-8-jdk

   44  java -version
   45  wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
   46  sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

   47  sudo apt update
   48  sudo apt install jenkins
   49  sudo cat /var/lib/jenkins/secrets/initialAdminPassword