Install Jenkins on RHEL 8

  1. Installing OpenJDK and verify the version
yum install java -yjava -version

2. Configuring yum and Installing Jenkins

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.reposudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.keysudo yum install jenkins -y

3. Starting and Enabling the service

sudo service jenkins start/stop/restart/statussudo chkconfig jenkins on

4. Allowing the port and service through the firewall (Default port is 8080)

firewall-cmd --permanent --new-service=jenkinsfirewall-cmd --permanent --service=jenkins --add-port=8080/tcpfirewall-cmd --zone=public --add-service=http --permanentfirewall-cmd --reload

5. First-time setup

Put this key and you can proceed to set up.

Skipping the first time setup as it can be changed later in configuration settings.

6. Changing the password of the admin user.

This is your homepage. Go to Manage Jenkins.

Go to Manage Users.

Go to the settings of that specific user.

Change you password and save.

Ignore this page for now. Your password has changed successfully.

Now login with your new credentials.

The first-time Setup with a new password is complete.

*To give Jenkins the root power, with no password asked. Do this step so you don't face the permission denied error.

sudo echo "jenkins ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

Worked in collaboration with Daksh Jain.

Connect me on my LinkedIn as well.

Just a tech enthusiast… Research, implement and share is what I like to do

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store