Skip to content

DonKolawolu/Jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Jenkins Installation And Setup In AWS EC2 Redhat Instnace.

Prerequisite
  • AWS Acccount.
  • Create Redhat EC2 t2.medium Instance with 4GB RAM.
  • Create Security Group and open Required ports.
    • 8080 got Jenkins, ..etc
  • Attach Security Group to EC2 Instance.
  • Install java openJDK 1.8+ for SonarQube version 7.8

Install Java JDK 1.8+ as Jenkins pre-requisit

Install other softwares - git, unzip and wget

sudo hostnamectl set-hostname ci
sudo yum -y install unzip wget tree git
sudo yum install java-11-openjdk -y
sudo su - ec2-user

Add Jenkins Repository and key

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
cd /etc/yum.repos.d/
sudo curl -O https://pkg.jenkins.io/redhat-stable/jenkins.repo

Install Jenkins

sudo yum -y install jenkins  --nobest

start Jenkins service and verify Jenkins is running

sudo systemctl start jenkins
sudo systemctl enable jenkins
sudo systemctl status jenkins

Access Jenkins from the browser

public-ip:8080
curl ifconfig.co 

get jenkins initial admin password

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published