简体   繁体   English

Azure DevOps Artifacts Feed 填充了 NuGet Gallery 包

[英]Azure DevOps Artifacts Feed fills with NuGet Gallery packages

Currently I try to establish on my Azure DevOps Server (self-hosted) a nuget/dotnet pack build- and release pipeline.目前,我尝试在我的 Azure DevOps 服务器(自托管)上建立一个nuget/dotnet pack构建和发布管道。

  • build pipeline build the sources, pack them to nupkg and upload it to the drop artifacts .构建管道构建源代码,将它们打包到nupkg并将其上传到drop artifacts
  • release pipeline grep that nupkg from the drop folder and perform a nuget push , when the package get updated.drop文件夹释放管道grep 该nupkg并在包更新时执行nuget push

So I create a artifacts feed , test the pipelines, run agents connected to the feed and build solutions, everything was fine.所以我创建了一个工件提要,测试管道,运行连接到提要的代理并构建解决方案,一切都很好。 Some hours later, I check my feed and recognize that the feed contains standard packages from the NuGet Gallery .几个小时后,我检查了我的提要,发现提要包含来自NuGet 库的标准包。

在此处输入图片说明

First I thought, I pushed accidently with my pipelines, so I removed the feed and a bit later (after background cleanup) I create a new one with the same name.首先我想,我不小心用了我的管道,所以我删除了提要,稍后(在后台清理之后)我创建了一个同名的新提要。 Few minutes later, the packages from NuGet Gallery were inside again without running my pipelines.几分钟后,来自NuGet Gallery的包又回到了里面,而没有运行我的管道。

How is that possible, do I misunderstanding something?这怎么可能,我是不是误解了什么?

Config for my self-hosted agents \\AppData\\Roaming\\NuGet\\NuGet.Config :我的自托管代理的配置\\AppData\\Roaming\\NuGet\\NuGet.Config

<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="MyFeed1" value="https://mylocalurl.de/ColA/_packaging/ProjA/nuget/v3/index.json" />
  </packageSources>
</configuration>```

Azure DevOps Artifacts Feed fills with NuGet Gallery packages Azure DevOps Artifacts Feed 填充了 NuGet Gallery 包

This is an expected behavior.这是预期的行为。

That because your private Nuget Feed set nuget.org as an Upstream source by default if you set Package from public sources enable when you create the this feed:那是因为如果您在创建此提要时将来自公共源的包设置为启用,则默认情况下您的私有 Nuget 提要将nuget.org设置为上游源

在此处输入图片说明

Then go to Setting -> Upstream source , you will find there are three public sources listed:然后转到Setting -> Upstream source ,您会发现列出了三个公共源:

在此处输入图片说明

在此处输入图片说明

You could use the source filter to select the source of the package.您可以使用过滤器来选择包的源。

When we download any packages from the Upstream sources, Azure Artifacts feed will cache these packages automatically when we download any packages from the Upstream sources, so that we could see it next time and no need to download it from the Upstream sources again .当我们从上游源下载任何包时,当我们从上游源下载任何包时,Azure Artifacts 源会自动缓存这些包,以便我们下次可以看到它,而无需再次从上游源下载

If you do not want use cache those packages, you could select the next option Only use packages published to this feed when you create the feed.如果您不想使用缓存这些包,则可以选择下一个选项Only use packages published to this feed在创建Only use packages published to this feedOnly use packages published to this feed

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以将现有的 NuGet 包上传到 Azure DevOps 工件源吗? - Can I upload existing NuGet packages to an Azure DevOps artifacts feed? 从我的 Azure DevOps Artifacts 提要安装上游 NuGet 包(以将它们保存在该提要中)无效 - Installing upstream NuGet packages from my Azure DevOps Artifacts feed (to get them saved in that feed) has no effect Publish.snupkg 到 Azure DevOps 工件 nuget 提要 - Publish .snupkg to Azure DevOps artifacts nuget feed Nuget 在 Azure DevOps 工件提要的 Jenkins 构建期间恢复返回 401 未经授权 - Nuget restore returns 401 unauthorized during Jenkins build for packages in Azure DevOps artifacts feed 一些包无法从 Azure DevOps Artifacts feed 下载 NuGet upstream source - Some packages can't be downloaded from Azure DevOps Artifacts feed with NuGet upstream source 如何使用 C# 从 Azure Devops 中的 Artifacts/Nuget Feed 获取所有包及其版本的列表? - How to get the list of all the packages with their versions from Artifacts/Nuget Feed in Azure Devops using C#? 为什么我在DevOps Artifacts中的私人Nuget Feed中有Microsoft软件包? - Why are there Microsoft packages in my private Nuget Feed in DevOps Artifacts? 如何将nuget包从AppVeyor CI发布到Azure DevOps工件 - How to publish nuget packages from AppVeyor CI to Azure DevOps artifacts 将 NuGet 包从 TeamCity 发布到 Azure DevOps 工件 - Publish NuGet Packages from TeamCity to Azure DevOps Artifacts 有选择地将项目作为 Nuget 包发布到 Azure Devops 工件 - Selectively publish projects as Nuget packages to Azure Devops Artifacts
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM