Currently I try to establish on my Azure DevOps Server (self-hosted) a nuget/dotnet pack
build- and release pipeline.
- build pipeline build the sources, pack them to
nupkg
and upload it to thedrop artifacts
. - release pipeline grep that
nupkg
from thedrop
folder and perform anuget push
, when the package get updated.
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.
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.
How is that possible, do I misunderstanding something?
Config for my self-hosted agents \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>```