Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置全局请求代理功能 #4749

Closed
hingbong opened this issue Jul 21, 2021 · 0 comments
Closed

配置全局请求代理功能 #4749

hingbong opened this issue Jul 21, 2021 · 0 comments
Labels
area/ci/backend CI 后端issue done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy grayed uat环境测试通过/test passed for uat stage kind/enhancement 功能改进特性 kind/version/sample 所属开源版本特性

Comments

@hingbong
Copy link
Contributor

有些环境访问某些外网需要配置代理,但是除了那个网站以外的直连即可,Java自动的代理配置只能使用http.nonProxyHosts参数排除直连的域名,使用上不方便

@hingbong hingbong added the kind/enhancement 功能改进特性 label Jul 21, 2021
hingbong added a commit to hingbong/bk-ci that referenced this issue Jul 22, 2021
@irwinsun irwinsun added area/ci/backend CI 后端issue kind/feat/tech 技术性特性 and removed kind/feat/tech 技术性特性 labels Jul 22, 2021
@bkci-bot bkci-bot added the for test Test environment in tencent has been deploy label Jul 23, 2021
@irwinsun irwinsun added grayed uat环境测试通过/test passed for uat stage kind/version/sample 所属开源版本特性 labels Aug 2, 2021
irwinsun added a commit that referenced this issue Aug 2, 2021
feat: 配置全局请求代理功能 #4749
hingbong added a commit to hingbong/bk-ci that referenced this issue Aug 2, 2021
com.tencent.devops.common.api.util.OkhttpUtils.okHttpClient 为静态对象,初始化 OkhttpUtils 类就会初始化对象
根据 com.squareup.okhttp3/okhttp/3.9.1/7539531ecf9b6e082fcab195f0835d4f69ead95e/okhttp-3.9.1-sources.jar!/okhttp3/OkHttpClient.java:478 初始化对象时就会选择使用的 ProxySelector
irwinsun added a commit that referenced this issue Aug 2, 2021
feat: 配置全局请求代理功能 #4749 尽早初始化代理配置
@bkci-bot bkci-bot added the for gray UAT environment in tencent has been deploy label Aug 2, 2021
@bkci-bot bkci-bot added the done Production environment in tencent has been deploy label Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci/backend CI 后端issue done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy grayed uat环境测试通过/test passed for uat stage kind/enhancement 功能改进特性 kind/version/sample 所属开源版本特性
Projects
None yet
Development

No branches or pull requests

3 participants