Total Pageviews

Search This Blog

Copyright to Cloud TechNet organization . Powered by Blogger.

Pages

Blogger templates

Sunday, 18 June 2023

Install Jenkins on Ubuntu server ?



1. Create Ubuntu 22.04 EC2 instances in any region.

2. Connect the server with Putty

3. Verify JDK versions in Ubuntu instance

$ sudo apt search jdk

4. Add apt repository for openjdk

$ sudo add-apt-repository ppa:openjdk-r/ppa

5. update ubuntu OS

$ sudo apt update

6. Install OpenJDK 11

$ sudo apt install openjdk-11-jdk

7. Install Jenkins on Ubuntu from jenkins.to website

https://www.jenkins.io/doc/book/installing/linux/


curl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \
  /usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
  https://pkg.jenkins.io/debian binary/ | sudo tee \
  /etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins


8. Check the status of jenkins

$ systemctl status jenkins

9. Check if the service is enabled or not ?

$ systemctl is-enabled jenkins

10. Check port configuration in Jenkins server?

$ ps -ef | grep jenkins

11. Check whether the port 8080 is opened or not?

$ss -tunpl | grep 8080

12. How to connect jenkins server from browser?

www.pubip:8080

13. How to login for the first time in the jenkins web console with a temp password?

Note: temp password location is "/var/lib/jenkins/secrets/initialAdminPassword" by default

From putty: (you can run the below command to get temp password)

cat /var/lib/jenkins/secrets/initialAdminPassword


 
 

0 comments:

Post a Comment