Jenkins is a platform targeted at making Continuous Delivery and Continuous Integration not just possible but a lot easier. Learn how to install it on Rocky Linux.
Image: Andreas Prott/Adobe Stock For any business wanting to make nimble advancement a truth, there are specific tools you’ll want to make available for your groups. One such tool is Jenkins, which supports more than 1,000 plugins for the structure, releasing and automating of agile jobs.
SEE: Hiring package: Back-end Developer (TechRepublic Premium)
The essential features of Jenkins consist of deployment-ready staging, extensibility, test modification, third-party integrations, process, workflow management, configuration management, reporting, access control and automation.
In this tutorial, I’ll stroll you through how to install Jenkins on Rocky Linux 9. The setup is fairly uncomplicated and should not take more than 5 to 10 minutes.
What you’ll need to set up Jenkins
To follow along, you’ll need a running instance of Rocky Linux 9 and a user with sudo benefits. That’s it.
How to set your time zone
The first thing we wish to do is make certain your Rocky Linux server is in the right time zone. To inspect, log into your circumstances of Rocky Linux and see the list of time zones with this command:
timedatectl list-timezones
Now, discover your timezone in this list and set it with the following, where TIMEZONE is the right time zone for your area:
sudo timedatectl set-timezone TIMEZONE
How to set up the necessary reliances
Next, we’re going to install the needed dependencies. Start by opening a terminal window and setting up Java OpenJDK with this command:
sudo dnf set up java-11-openjdk -y
Next, set up wget and curl with this command:
sudo dnf install wget curl -y
How to install the Jenkins repository
We now need to add the main Jenkins repository with the following:
sudo wget -O/ etc/yum. repos.d/ jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
Now, to import the Jenkins GPG key, use this:
sudo rpm– import
How to install Jenkins
You can now install Jenkins with this command:
sudo dnf install jenkins -y
When installation finishes, reload the systemctl daemon with this command:
sudo systemctl daemon-reload
Now, you can begin and make it possible for the service with:
sudo systemctl allow– now jenkins
If you’re not currently allowing HTTP traffic through the firewall program, allow this now with the following commands:
sudo firewall-cmd– add-service=http– long-term
sudo firewall-cmd– reload
How to access Jenkins
It’s time to access the platform by pointing your web browser to http://SERVER:8080, where SERVER is the IP address or domain of the hosting server. You will be triggered to get in the admin password, which can be retrieved by running this command:
sudo cat/ var/lib/jenkins/ secrets/initialAdminPassword
Now, copy and paste that password into the Administrator password field (Figure A).
Figure A
Unlocking Jenkins with the password you copied from the cat command. You will then be prompted to install plugins. I suggest you click Install Suggested Plugins to get the most commonly-used plugins. After clicking Install Suggested Plugins, the setup will take a couple of minutes to finalize, but you’ll eventually be prompted to develop an admin user (Figure B).
Figure B
Make certain to create a strong password for your admin user. When you develop the admin user, you’ll be presented with the Jenkins main page, where you can begin including your tasks.
Agility at your fingertips
Agile development is tough, so any tool you can get to simplify the procedure must be a should for your developers. If you desire dexterity at your fingertips, Jenkins is a terrific place to begin.
Looking for additional ideas and tricks for development on Linux operating systems? Check out our guide, 8 essential tools for designers on Linux.