Open clairernovotny opened 4 years ago
Thanks @onovotny, which specific badges would you be looking for (version, downloads, etc.)? I ask as we'll have to figure out if AzDO makes the required data available (for example download counts) to determine the viability of each badge type.
I'm most interested in version. The biggest issue I have is that the built-in badge service Azure Pipelines has only does the latest stable version, not prerelease. Counts could be nice as well but I don't think are as critical.
Here's a public feed: https://dev.azure.com/dotnet/Rx.NET/_packaging?_a=feed&feed=RxNet
One thing to note is that public feeds are scoped to the org whereas private feeds are account-wide. I believe there's an extra path parameter to support that. You can select the Connect to Feed button for it to show you the NuGet/npm/Maven/Gradel/Python specific endpoints.
What's the authentication process like with private feeds? I use AzDO a lot but have never worked with Artifacts.
We support using PATs (with a self-hosted Shields instance) for badges from private Team Projects (build/release status, coverage, test results, etc.)
For private feeds, I think you can use the macOS instructions to use any username and then a PAT as the password:
Excellent, thanks!
+1 for this badge.
Also, note that Azure Artifact feeds have four release views: all, local, prerelease and release packages. Each view has a unique nuget feed. For example, in the Rx.NET artifact feed that @onovotny referenced, the all packages feed url is https://pkgs.dev.azure.com/dotnet/Rx.NET/_packaging/RxNet/nuget/v3/index.json while the release packages feed is https://pkgs.dev.azure.com/dotnet/Rx.NET/_packaging/RxNet%40Release/nuget/v3/index.json. Rx.NET doesn't appear to be using this feature, but seems worth supporting all four views in the badge
Maybe there should be a generic Nuget Feed badge where the shield user can put in the specific feed they want to use to support any private nuget server like Sleet
@onovotny does this work for you? I'm going to try this out: https://docs.microsoft.com/en-us/azure/devops/artifacts/package-badges?view=azure-devops
@devhawk the issue with that is that it doesn't show prerelease package versions.
@devhawk just ran into this and have the same complaint. nuget.org is where my released packages go. The Azure Artifacts "feature" of not being able to show pre-releases means I need to use myget or some other package source if I want badges to link folks to beat version to try out.
Bump? Any thoughts on this?
Azure Artifacts has public feeds now. Should work for NuGet/Maven/npm (pretty much any kind of package artifact). It should have support for latest stable and latest prerelease.
:microphone: Motivation Other NuGet feed services are supported like MyGet/NuGet. This is another NuGet feed location.
Use case is displaying the latest stable or prerelease package from an Azure Artifacts feed.