Promoting packages to th required view in Azure DevOps Artifacts
Promote-Package is a modified version of VSTS-SetPackageQuality.
Usage example: ./Promote-Package.ps1 -feedName <yourfeed> -packageName <yourPackage> -packageVersion <versionToPromote> -targetView <targetView> -feedType <npm/nuget/python/universal>
- Environment Variables
SYSTEM_TEAMFOUNDATIONSERVERURI
- Name os the Azure DevOps Organization. It's default Azure DevOps VariableSYSTEM_TEAMPROJECT
- Name of the Azure DevOps Project. It's default Azure DevOps VariableAZDO_PAT
- Personal Access Token
- Personal Access Token should have Packaging -> Manage permissions
- Owner of the Personal Access Token should have Contributor access to the feed