
上QQ阅读APP看书,第一时间看更新
How to do it...
- Jenkins' stable and recent versions are available in a YUM repository.
- Add the Jenkins repository to the yum repos:
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
- For the stable version, execute:
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
- Import the following key:
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
- Install Jenkins by executing the following command:
sudo yum install jenkins