[英]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
构建和发布管道。
nupkg
and upload it to the drop artifacts
.nupkg
并将其上传到drop artifacts
。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 feed
时Only use packages published to this feed
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.