jenkins installation on ubuntu

jenkins installation on ubuntu

You can install jenkins by following some simple steps...

  1. Install Java
  2. Install Jenkins packages
  3. Allow the Jenkins port in the AWS , ec2 , security ( 8080)
  4. show the password of jenkins
  5. Step Jenkins portal1. Install Java

sudo apt update
sudo apt install fontconfig openjdk-17-jre
java -version
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment (build 17.0.8+7-Debian-1deb12u1)
OpenJDK 64-Bit Server VM (build 17.0.8+7-Debian-1deb12u1, mixed mode, sharing)        

2. Install Jenkins packages

sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
  https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
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
sudo apt-get update
sudo apt-get install jenkins        

3. Allow the Jenkins port in the AWS , ec2 , security ( 8080)

8080 default port of jenkins so, you should add security inbound rule 8000 port on your IP

4. show the password of jenkins

  • Now you can access jenkins by using your ec2 instance public Ip with jenkins default port 8000
  • for example ( myIp:8000)
  • after that , you can see the jenkins interface
  • /var/lib/jenkins/secrets/initialAdminPassword ( using this location to take your unique password to open the jenkins )

Use this in your ubuntu VM

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

5. Step Jenkins portal

Now jenkins ready to use

Thanks .......

要查看或添加评论,请登录

Ujawal Tiwari的更多文章

社区洞察

其他会员也浏览了