renevanosnabrugge / vsts-promotepackage-task

Promote a package in VSTS to a Release View
MIT License
21 stars 25 forks source link

Publishing packages by name may fail with "not found error". #56

Open jessehouwing opened 4 years ago

jessehouwing commented 4 years ago

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 packageNameQuery and use top=&skip= in a loop.

See: https://github.com/renevanosnabrugge/vsts-promotepackage-task/commit/91ba34193a1d66a83a2272e7e7be38de21e3c971

jessehouwing commented 4 years ago

The work around has likely fixed: