我要评分
获取效率
正确性
完整性
易理解

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.

  1. 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
  2. Import the verification certificate of the Jenkins RPM installation package.
    rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
  3. (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