Friday, June 8, 2018

Install Jenkins on Linux | Install Jenkins Red Hat Enterprise Linux 7.5 - How to setup Jenkins on Red Hat Linux

How to Install Jenkins on Red Hat Enterprise Linux?

Please find below steps:

You need to setup Java first.
 
sudo yum install wget -y

Java Installation
sudo yum install java-1.8.0-openjdk-devel -y

Add Jenkins repository to yum repository
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key

Install Jenkins
sudo yum install jenkins -y

Start Jenkins
sudo systemctl  start jenkins
sudo systemctl  enable jenkins

Get Jenkins Admin Password
sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Copy the output of the above command.
Now go to browser and access the Jenkins page.

http://dns_name:8080

Your page will look something like this. Now paste the password into the below Administrator password text box.
Press Continue..Click on install suggested plug-ins..


4 comments: