Task 11: Create an Artifact Feed with Specific Retention Policies
Step 1: Navigate to Artifacts
In your Azure DevOps Project (Project1), click on the Artifacts section in the left menu.
Step 2: Create a New Feed
Click on the + New feed button.
In the Name field, enter:
nginx
Copy
artifact_feed
Choose the visibility of the feed:
Project scoped (only accessible to Project1).
Or Organization scoped (accessible across your Azure DevOps organization).
Leave other settings at default unless you have specific permissions or upstream sources.
Click Create.
This creates a new feed named artifact_feed.
Step 3: Configure Retention Policies
In the Artifacts section, click on the feed named artifact_feed to open its details page.
In the top-right corner, click on the three dots (...) and select Feed settings.
Step 4: Set the Maximum Number of Versions to Retain
In the Feed settings page, find the Retention policies section.
Set Maximum number of versions per package to:
Copy
10
This ensures that only the latest 10 versions of any package are retained in the feed.
Step 5: Set the Downloaded Package Retention Period
In the Feed settings page, under Retention policies, find Downloaded package retention.
Set Number of days to retain downloaded packages to:
Copy
90
This ensures that downloaded packages will be retained in the cache for 90 days before deletion.