Installing Jenkins
Update the package manager and install Java 11
sudo yum update -y
sudo amazon-linux-extras install java-openjdk11 -yAdd 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.keyInstall Jenkins
sudo yum install -y jenkinsStart the Jenkins service and enable it to start on boot
sudo systemctl start jenkins
sudo systemctl enable jenkinscat /var/lib/jenkins/secrets/initialAdminPasswordLast updated