Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.13 KB

01-Jenkins-Server-Setup.md

File metadata and controls

52 lines (39 loc) · 1.13 KB

Jenkins Server Setup in Linux VM

Step - 1 : Create Linux VM

  1. Create Ubuntu VM using AWS EC2 (t2.medium)
  2. Enable 8080 Port Number in Security Group Inbound Rules
  3. Connect to VM using MobaXterm

Step-2 : Instal Java

sudo apt update
sudo apt install fontconfig openjdk-17-jre
java -version

Step-3 : Install Jenkins

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

Step-4 : Start Jenkins

sudo systemctl enable jenkins
sudo systemctl start jenkins

Step-5 : Verify Jenkins

sudo systemctl status jenkins

Step-6 : Open jenkins server in browser using VM public ip

http://public-ip:8080/

Step-7 : Copy jenkins admin pwd

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

Step-8 : Create Admin Account & Install Required Plugins in Jenkins