-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
254689d
commit 991f083
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 学习 |