To use this repository, run the following command:
| sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.reposudo rpm --importhttps://pkg.jenkins.io/redhat-stable/jenkins.io.key | 
If you‘ve previously imported the key from Jenkins, the "rpm --import" will fail because you already have a key. Please ignore that and move on.
With that set up, the Jenkins package can be installed with:
| yum install jenkins | 
原文:http://www.cnblogs.com/jwentest/p/7073188.html