The proxy is a HTTP server which serve for several different Jenkins Update Center sites.
The Mirror Proxy server has deployed to here.
https://updates.jenkins-zh.cn/update-center.json
Run it as demo on MacOS, please follow this:
make run
On Linux, please follow this:
make run-linux
On windows, please follow this:
make run-win
Copy the binary file from docker image:
mirror_proxy_id=$(docker create docker.pkg.github.com/jenkins-zh/mirror-proxy/mirror-proxy:v0.0.3) && sudo docker cp $mirror_proxy_id:/mirror-proxy . && docker rm -v $mirror_proxy_id
Run the Jenkins Update Center mirror proxy in docker:
make run-image
Given the certificate file:
docker run -v rootCA:/rootCA docker.pkg.github.com/jenkins-zh/mirror-proxy/mirror-proxy:0.0.1 --cert /rootCA/demo.crt --key /rootCA/demo.key
The only API path is:
API | Description |
---|---|
GET /update-center.json?version=2.190.2 |
Get the update-center.json which allows you give different query conditions |
GET /json-servers |
Get all JSON servers |
GET /providers |
Get all mirror storage providers |
GET /providers/default |
Get the default mirror storage provider |
GET /plugins/list?year=2020 |
Get the plugin list |
GET /plugins?year=2020&name=TwilioNotifier |
Get the download data of a specific plugin |
GET /status |
Get the server status |
Below are the query ways for the update center of the mirror:
Key | Description |
---|---|
version |
The version of current Jenkins |
mirror-experimental |
Indicate if you want to use the experimental of plugins |
mirror-jsonServer |
Specific the JSON server |
mirror-provider |
Specific the mirror storage provider |
All keys come from query and header. Header value will override the query ones.