centos安装jenkins
首先拉取源(http://pkg.jenkins-ci.org/redhat-stable/):
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
然后就可以直接通过yum install -y jenkins安装了