Jenkins is an open source, Java-based automation server that offers an easy way to set up a continuous integration and continuous delivery (CI/CD) pipeline. Here are the steps to install and initialize it on Oracle Linux 7



(1) If JDK doesn't exist on your system

yum install java-1.8.0-openjdk-devel


(2) Enable Jenkins repository

curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo

And add the repository to your system

sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key


(3) Install Jenkins

yum install -y jenkins


(4) Start, check and enable the service

systemctl start jenkins
systemctl status jenkins
systemctl enable jenkins


(5) Add the firewall rules

firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload


(6) Open Jenkins on your browser


Use the following command to print the password on your terminal

cat /var/lib/jenkins/secrets/initialAdminPassword 


(7)  Choose (Install suggested plugins)


(8) Wait for the installation of the plugins


(9) Set the admin password and choose (Save and Continue)


(10) Get the URL and click (Save and Finish)


(11) Start Using Jenkins


(12) Install (locale plugin) to change the UI language if required.

Goto http://localhost:8080/pluginManager/available

and search for (locale)


(13) If you want Jenkis to use English, goto http://localhost:8080/configure

and set language to ( en ) and ignore your browser language




I hope it helps someone