一、Jenkins安装git parameter 插件重启后报错与临时解决方案
cd /root/.jenkins
cp config.xml config.xml.bak
vim config.xml
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy">
<denyAnonymousReadAccess>false</denyAnonymousReadAccess>
</authorizationStrategy>
重启jenkins
二、系统管理=>插件管理=>高级,在升级站点中替换成清华源地址:https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/dynamic-stable-2.346.3/update-center.json
三、修改Jenkins配置文件中插件更新地址为清华源地址
cd /root/.jenkins/
vim hudson.model.UpdateCenter.xml
四、修改default.json
cd /root/.jenkins/updates
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/dynamic-stable-2.346.3/update-center.json
cp default.json default.json.bak
mv update-center.json default.json
五、禁用证书校验
cd /usr/local/tomcat8/apache-tomcat-jenkins/bin
vim catalina.sh
添加以下内容:
JAVA_OPTS=“$JAVA_OPTS -Dhudson.model.DownloadService.noSignatureCheck=true”
重启tomcat
systemctl stop tomcat.service
systemctl start tomcat.service
六、还原config.xml,重启Jenkins
cd /root/.jenkins
cp config.xml.bak config.xml
cd /usr/local/tomcat8/apache-tomcat-jenkins/bin/
sh shutdown.sh
sh startup.sh