Learning Continuous Integration with Jenkins(Second Edition)
上QQ阅读APP看书,第一时间看更新

Installing the latest stable version of Jenkins

If you prefer to install a stable version of Jenkins, then follow these steps:

  1. Add the Jenkins repository to the yum repository using the following command:
        sudo wget -O /etc/yum.repos.d/jenkins.repo \
http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo

sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
  1. Install Jenkins using the following command:
        sudo yum install jenkins
  1. See the Starting, stopping, and restarting Jenkins on Red Hat Linux section if you are required to start Jenkins.