作为NuGet“代理"的Azure DevOps服务器;服务器

编程入门 行业动态 更新时间:2024-10-28 08:17:05
本文介绍了作为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)和错误(无法加载 源的服务索引 **************/_packaging/nuget_feed/nuget/v3/index.json.这 HTTP请求到'GET **************/_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 **************/_packaging/nuget_feed/nuget/v3/index.json. The HTTP request to 'GET **************/_packaging/nuget_feed/nuget/v3/index.json' has timed out after 100000ms.)

或带有:

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

Response status code does not indicate success: 500 (Internal Server Error - Failed to retrieve data from the upstream package source 'api.nuget/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服务器;服务器

本文发布于:2023-10-24 23:49:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1525346.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   quot   NuGet   DevOps   Azure

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!