When passing in a package by name (in YAML or when publishing from **/*.nupkg) a query is done to find the packageId. The result is only the top 1000 items, which may not be enough if your feed is proxying upsteam sources.
As a quick-fix I've added packageNameQuery=$packageId to the API call, this should limit the number of returned items quite a bit. But in weird cases this may still fail. The correct solution it to use the packageNameQueryand use top=&skip= in a loop.
When passing in a package by name (in YAML or when publishing from
**/*.nupkg
) a query is done to find the packageId. The result is only the top 1000 items, which may not be enough if your feed is proxying upsteam sources.As a quick-fix I've added
packageNameQuery=$packageId
to the API call, this should limit the number of returned items quite a bit. But in weird cases this may still fail. The correct solution it to use thepackageNameQuery
and usetop=&skip=
in a loop.See: https://github.com/renevanosnabrugge/vsts-promotepackage-task/commit/91ba34193a1d66a83a2272e7e7be38de21e3c971