CyberKeeda In Social Media

How to install Jenkins on Ubuntu 18.04 Bionic


Here we go, proceed with the below steps.


  • Mandatory requirement : Jave aka OpenJDK.
$  sudo apt install openjdk-8-jdk
Once installed verify the installation using the below command.
$  java -version

  • Installing Jenkins.

Official Ubuntu ships with older versions of jenkins, why lag behind let's add the new sources to install the latest version.

  • Add repository key first.
$  wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
  • Once you got an OK confirmation, let's proceed to add debian package repository address to the our server's source list.
$  sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
  • Now we are almost ready to install jenkins, lets make an update now
$  wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
  • Here we go, install jenins now
$  sudo apt install jenkins

  • Start Jenkins

$  sudo systemctl start jenkins

    Access Admin Password to login to Jenkins UI.
    Open CLI, hit below cat command and grab the initial login password.

    $  sudo cat /var/lib/jenkins/secrets/initialAdminPassword

    Login to UI.

    $  http://<Your Jenkins Server IP>:8080/

      Further steps are self explanatory, install suggested plugins and change the initial admin password with your. 







      No comments:

      Post a Comment

      Related Posts Plugin for WordPress, Blogger...
      Designed By Kunal Saha