How to Setup Jenkins on Linux Alma

Spread the love
How to Setup Jenkins on Linux Alma

How to Setup Jenkins on Linux Alma

Jenkins Installation: Prerequisites

  • Operating System & Version: For this tutorial, the OS must be AlmaLinux OS 8.
  • Administrative rights on Linux: Use the sudo command as root or as a user with administrative rights to log into the AlmaLinux 8 system.
  • Hardware Minimum Requirements: You have 10 GB of free storage space and 2 GB of RAM.

Update your system

Make sure your system is updated with the most recent versions of the software packages before installing and configuring Jenkins. To upgrade your AlmaLinux system to the most recent versions of the necessary software, run these commands:

Add the Jenkins Repository (“Repo”)

To enable the Extra Packages for Enterprise Linux (EPEL) repository, first run the following command:

A repository for the Jenkins package is part of the Jenkins project. The Jenkins repository and the GPG key must be added because AlmaLinux 8 does not include these by default.

To add the Jenkins repository to the AlmaLinux system, use the following command:

This is the result:

Use the following command to import the Jenkins GPG key into the AlmaLinux system:

Use the following command to download the metadata for each package:

This is the result:

You can check that the new source list was appropriately added by running the following command:

This is the result:

Install Java

Because Jenkins is developed in Java, Java must first be installed on your Almalinux system. Run the following command to install Java:

This is the result:

Use the following command to check the Java version that is currently installed:

This is the result:

Install Jenkins

You are now prepared to read the actual installation instructions for Jenkins after finishing the preceding steps. Use the command below to install Jenkins on your AlmaLinux system:

This is the result:

Run the following commands to launch and enable the Jenkins service:

This is the result:

Use the next command to verify the status of the Jenkins service:

This is the result:

Configure your firewall

By default, Jenkins listens on port 8080. If your AlmaLinux system is protected by a firewall, you must permit communication on this port. You can accomplish this by running the ensuing commands:

This is the result:

Access the Jenkins Web Interface

To view the Jenkins web interface after installation, open a web browser and navigate to http://your_server_ip:8080.

A password is required, and it may be located in the file initialAdminPassword in the directory /var/lib/jenkins.

Use the following command to view the password:

This is the result:

Then click Continue after entering the Administrator password:

The screen for Jenkins customization will appear:

In this box, you have the option of installing the suggested plugins or choosing your own. We’ll continue by installing the suggested plugins. Once the installation starts, you’ll see that it will take some time to finish:

After the installation is complete, you must provide the administrator’s Username, Password, Full Name, and Email Address:

Once the administrator’s information has been entered, click Save and Continue:

You may find your Jenkins URL in this window. Click the Save and Finish button in the bottom-right corner of the window to save the changes.

Congratulations on mastering the Jenkins installation process! The time has come to use Jenkins. Select the Jenkins start button.
You now know how to set up Jenkins under AlmaLinux. Currently displayed is the Jenkins Dashboard:

How to Remove Jenkins

It might be necessary to uninstall Jenkins at some time after learning how to install it. You can follow these instructions to uninstall Jenkins from the AlmaLinux system.

First, halt the Jenkins service.

You must stop the Jenkins service before uninstalling Jenkins:

Remove the Jenkins software

Execute the following command to uninstall Jenkins, erasing the Jenkins program from your server:

2 thoughts on “How to Setup Jenkins on Linux Alma

Leave a Reply

Your email address will not be published. Required fields are marked *