作为NuGet“代理"的Azure DevOps服务器;服务器 [英] Azure DevOps Server as NuGet "proxy" server

查看:162
本文介绍了作为NuGet“代理"的Azure DevOps服务器;服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Azure DevOps Server,它将在没有Internet连接的情况下在工作站上运行生成任务. DevOps服务器本身可以连接到互联网.

I have Azure DevOps Server which will run build tasks on workstations without internet connection. The DevOps server itself can connect to internet.

我正在尝试以一种方式配置Devops服务器,当其中一个工作站上的构建需要Nuget程序包时,该服务器连接到Internet并下载它,实际上充当了构建代理的代理服务器",在无法访问互联网的工作站上运行.

I'm trying to configure Devops server in a way that when the build on one of the workstations needs a Nuget package, the server connects to the internet and downloads it, virtually serving as "proxy server" for build agents which are running on workstations without internet access.

我已经配置了Nuget提要,并创建了指向该提要的服务连接.但是,每当我尝试在构建任务中使用提要时,任务都会失败,并显示超时"错误

I've configured Nuget feed and created service connection which points to that feed. However, whenever I try to use feed in build tasks, tasks fail either with "timed out" error

nuget命令失败,并显示退出代码(1)和错误(无法加载 源的服务索引 https://**************/_packaging/nuget_feed/nuget/v3/index.json.这 HTTP请求到'GET https://**************/_packaging/nuget_feed/nuget/v3/index.json'具有 100000ms后超时.)

The nuget command failed with exit code(1) and error(Unable to load the service index for source https://**************/_packaging/nuget_feed/nuget/v3/index.json. The HTTP request to 'GET https://**************/_packaging/nuget_feed/nuget/v3/index.json' has timed out after 100000ms.)

或带有:

响应状态代码未指示成功:500(内部服务器 错误-无法从上游软件包源中检索数据 ' https://api.nuget.org/v3/index.json ':发送时发生错误 请求

Response status code does not indicate success: 500 (Internal Server Error - Failed to retrieve data from the upstream package source 'https://api.nuget.org/v3/index.json': An error occurred while sending the request

Azure DevOps Server可以用作"Nuget包代理"吗?如果可以,如何将其配置为执行此任务?

Can Azure DevOps Server function as "Nuget package proxy", and, if yes, how can it be configured to perform this task?

推荐答案

这件事也发生在我身上,

It happened to me too,

我删除了上游源,并且解决了:

I deleted upstream source and it worked out:

最诚挚的问候

这篇关于作为NuGet“代理"的Azure DevOps服务器;服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆