Installing Jenkins

Update the package manager and install Java 11

sudo yum update -y
sudo amazon-linux-extras install java-openjdk11 -y

Add the Jenkins repository to the system

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

Install Jenkins

sudo yum install -y jenkins

Start the Jenkins service and enable it to start on boot

sudo systemctl start jenkins
sudo systemctl enable jenkins

Now you can access the Jenkins on https://public_ip:8080

Get the password by navigating to the below file :

cat /var/lib/jenkins/secrets/initialAdminPassword

Click on -> Install all the suggested Plugins

Create your first job -> Pipeline - > Pipeline Syntax -> Select from SCM

Last updated