Installing Jenkins on Ubuntu OS - cloudeguru/How-To-Install GitHub Wiki

KloudBlogs Youtube

In this document we will see a step by step guide on how to install Jenkins on Ubuntu OS

  1. Launch your ubuntu instance and login to it

  2. Update the repositories by running below command

sudo apt update 3. Install Java by running below command

 sudo apt install fontconfig openjdk-17-jre
  1. Add the required keys by running below command

sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \ https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key

  1. Add the repository

    echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]" \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null

  2. Now update the repository

    sudo apt-get update

  3. Now install Jenkins and if prompted press Y

    sudo apt-get install jenkins

  4. If you are running Jenkins in an EC2 instance make sure to allow inbound traffic on port 8080 in your instance's security group.

  5. Now open your browser and type http:host-ip:8080

  6. Now you should see your Jenkins instance up and running