Hey @Chandu, follow these steps to install Jenkins on Ubuntu:
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
sudo apt-get update
sudo apt-get install jenkins
Start Jenkins
sudo systemctl start jenkins
sudo systemctl status jenkins
By default jenkins runs on port 8080
sudo ufw allow 8080
Go to this to set up jenkins
http://ip_address_or_domain_name:8080
Execute the following command to get the token:
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Enter the token, create an account and you're good to go :)