Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
Feed views enable developers to control package visibility by sharing some packages while keeping others private. Each view filters the feed to display a subset of packages based on specific criteria defined for that view.
By default, Azure Artifacts comes with three views: @Local, @Prerelease, and @Release. The @Local view is the default and contains all published packages and those saved from upstream sources. All views support NuGet, npm, Maven, Python, Cargo, and Universal Packages. You can change the default view in your Feed Settings > Views, but doing so doesn't enable direct publishing to that view. Packages can only be published to the base feed, where they're available in the @Local view.
Note
You must be a Feed Publisher (Contributor) or a Feed Owner to promote packages to a view.
Promote a package to a specific view
Sign in to your Azure DevOps organization, and then navigate to your project.
Select Artifacts, and then select your feed from the dropdown menu.
Select the package you want to promote, and then select Promote.
Select a view from the dropdown menu, and then select Promote again.
მნიშვნელოვანი
Azure Artifacts doesn't support package demotion. Once a package is promoted, it can't be reverted to a previous view.
Promote a package using the REST API
To promote a package using the REST API, you need to send a PATCH request with the appropriate body formatted as a JSON Patch document. This appends the desired view (for example, Prerelease) to the package’s views array.
Copy the endpoint URL, replace it in the following example (either PowerShell or curl), and run the command to promote your package to the desired view.
Replace the placeholders with your personal access token, endpoint URL, and view name, then run the command to promote your package to the desired view:
All feed views in a public project are accessible to everyone on the internet.
Manage views
By default, Azure Artifacts offers three views: @Local, @Prerelease, and @Release. You can also create new views and manage existing ones by renaming or deleting them directly from your feed's settings.
Sign in to your Azure DevOps organization, and then navigate to your project.
Select Artifacts, and then select your feed from the dropdown menu.
Select the gear icon on the far right
to access your feed's settings.
Select Views, select a view, and then select Edit to edit your view. If you want to add a new view, select Add view.
Select Save when you're done.
მნიშვნელოვანი
For public feeds, if you change the access permissions of a view to Specific people, that view is no longer available as an upstream source.
შემოუერთდით Meetup სერიას, რათა შექმნათ მასშტაბური AI გადაწყვეტილებები რეალურ სამყაროში გამოყენების შემთხვევებზე დაყრდნობით თანამემამულე დეველოპერებთან და ექსპერტებთან.