Skip to content

Commit

Permalink
Create 插件mirror.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mohaijiang authored Feb 24, 2020
1 parent 254689d commit 991f083
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/jenkins/插件mirror.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## 配置jenkins插件mirror
1: 修改 $JENKINS_HOME/hudson.model.UpdateCenter.xml

```
<?xml version='1.1' encoding='UTF-8'?>
<sites>
<site>
<id>default</id>
<url>https://updates.jenkins-zh.cn/update-center.json</url>
</site>  
```

2: 下载证书到 $JENKINS_HOME/war/WEB-INF/update-center-rootCAs/

wget https://raw.githubusercontent.com/jenkins-zh/mirror-adapter/master/rootCA/mirror-adapter.crt

删除插件缓存$JENKINS_HOME/updates

镜像和为什么下载证书,到https://community.jenkins-zh.cn 学习

0 comments on commit 991f083

Please sign in to comment.