1 Star 0 Fork 0

Jenkins中文社区 / mirror-adapter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

An adapter of Jenkins update center.

Why

Jenkins downloads the plugins by parsing the JSON file which comes from a update center. One thing that you might already noticed is about the speed of downloading. Accessing a global storage for everyone could be slow although there're many mirror sites.

If you deep into the file update-center.json. Almost every mirror file is base on http://updates.jenkins-ci.org/download/plugins. So, the result is that these mirror sites can only speed up the process of downloading file update-center.json. Jenkins can download the .hpi from your target mirror site.

Background

It's might not be a good idea to change the update-center.json file directly. keeping sync all files should be simple without other logic.

Second, you need to provide a certificate file if you changed the update-center.json. Because Jenkins will validate the file before parsing it. It's necessary due to the safety reason.

Design

  • Create an adapter to replace the base URL
  • Provide a certificate file

How to

Here's a prototype implement which added into localization-zh-cn-plugin. You Just need to take three steps if you want to use a real mirror of update center:

  • install localization-zh-cn-plugin 1.0.10
  • use the new certificate file
  • change the update center URL

Feedback

Please don't hesitate to tell us your thoughts.

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jenkins-zh/mirror-adapter.git
git@gitee.com:jenkins-zh/mirror-adapter.git
jenkins-zh
mirror-adapter
mirror-adapter
master

搜索帮助