How to Install Jenkins on RedHat Enterprise Linux 8?
Please find below steps for setting up Jenkins on RHEL 8.
update package
sudo yum update
Install wget
sudo yum install wget -y
Java Installation
Download Java from Oracle site.
sudo wget --no-check-certificate --no-cookies --header 'Cookie: oraclelicense=accept-securebackup-cookie' 'http://download.oracle.com/ot n-pub/java/jdk/8u141-b15/336fa 29ff2bb4ef291e347e091f7f4a7/jd k-8u141-linux-x64.rpm'
Install from RPM
sudo rpm -i jdk-8u141-linux-x64.rpm
Add Jenkins repository to yum repository
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
Install Jenkins
sudo yum install jenkins -y
Start Jenkins
sudo service jenkins start
sudo service jenkins status
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..
Install suggested plug-ins.
Please find below steps for setting up Jenkins on RHEL 8.
update package
sudo yum update
Install wget
sudo yum install wget -y
Java Installation
Download Java from Oracle site.
sudo wget --no-check-certificate --no-cookies --header 'Cookie: oraclelicense=accept-securebackup-cookie' 'http://download.oracle.com/ot
Install from RPM
sudo rpm -i jdk-8u141-linux-x64.rpm
Add Jenkins repository to yum repository
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
Install Jenkins
sudo yum install jenkins -y
Start Jenkins
sudo service jenkins start
sudo service jenkins status
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..
Install suggested plug-ins.