下面摘自jenkins官网 RedHat Linux RPM packages for Jenkins
To use this repository, run the following command:
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
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
See Wiki for more information, including how Jenkins is run and where the configuration is stored, etc.
遇到问题:
1、在配置salt api的时候有个问题: 当saltapi配置https认证后,使用curl可以认证通过,但是在jenkins上配置上https后测试连接无法认证,提示:
Client error: Auth Error: net.sf.json.JSONException: JSONObject["return"] is not a JSONArray.
{"Error": "javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject>