Configuring a Jenkins Yum Repository
You need to set up either the Jenkins or GitLab environment. Do not install both of them on the same server. The following describes how to install the Jenkins environment. The operations are for reference only.
- Download the Yum repository configuration file of Jenkins to the /etc/yum.repos.d/ directory.
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
- Import the verification certificate of the Jenkins RPM installation package.
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
- (Optional) If the system has not been updated for a long time, it is recommended to run the following command to ensure that the dependency package is up to date. Otherwise, outdated dependencies may cause service issues after installation. After the upgrade, restart the system for the change to take effect.
yum upgrade -y
Parent topic: Online Installation