Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use jenkin plug-in download acceleration

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to use jenkin plug-in download acceleration". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use jenkin plug-in download acceleration.

Recommended practice 1. Tell jenkins which plug-ins I need to update

Jenkins plug-in Image address of Tsinghua University

Https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json

1. Enter jenkins system management

two。 Enter the plug-in Management (Manage Plugins)-Advanced-upgrade site

2. Deceive jenkins. I'm going to Tsinghua University to download the plug-in.

Bind mirrors.jenkins-ci.org host to the native

$grep jenkins / etc/hosts

# jenkins #

127.0.0.1 mirrors.jenkins-ci.org

Nginx reverse proxy to Tsinghua University

# root @ web-devops-01 in / usr/local/nginx/conf/vhost [23:32:55]

$cat mirrors.jenkins-ci.org.conf

Server

{

Listen 80

Server_name mirrors.jenkins-ci.org

Location / {

Proxy_redirect off

Proxy_pass https://mirrors.tuna.tsinghua.edu.cn/jenkins/;

Proxy_set_header X-Real-IP $remote_addr

Proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for

Proxy_set_header Accept-Encoding ""

# proxy_set_header User-Agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.49 Safari/537.36"

Proxy_set_header Accept-Language "zh-CN"

}

Index index.html index.htm index.php

# error_page 404 / 404.html

Location ~ /\.

{

Deny all

}

Access_log / data/weblog/xx.access.log

Error_log / data/weblog/xx.error.log

}

Other practices

Not recommended, difficult to maintain.

Download the address of step 1 directly and put it locally, change the address inside, and then start a service locally and write the json file of your own website at the upgrade site. Open https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json to find that the addresses of the plug-ins are all foreign, as long as the foreign address is successful and the corresponding address of Tsinghua University can be modified in batches.

Principle

The https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json file contains the update addresses of all the plug-ins. Tsinghua mirrored the file, but did not change the plug-in upgrade address to Tsinghua. This will only get updated information quickly, but the actual download is not fast.

Curl-vvvv http://updates.jenkins-ci.org/download/plugins/ApicaLoadtest/1.10/ApicaLoadtest.hpi302 to http://mirrors.jenkins-ci.org/plugins/ApicaLoadtest/1.10/ApicaLoadtest.hpi and redirect to a ftp address shunt. The address of Tsinghua is: https://mirrors.tuna.tsinghua.edu.cn/jenkins/plugins/ApicaLoadtest/1.10/ApicaLoadtest.hpi only need to agent mirrors.jenkins-ci.org to mirrors.tuna.tsinghua.edu.cn/jenkins. At this point, I believe you have a deeper understanding of "the use of jenkin plug-in download acceleration". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report