Azure Devops - Promote package by Powershell

I propose you a small script that will help you to pomote packages to upper quality in AzureDevops.

You will find the script here :

https://github.com/benjamin-devuyst/PowershellScripts/blob/master/Scripts/AzureDevops-PromotePackage.ps1

To use it, just open Powershell with a user that have permission in TFS and call the script with following args :

  • Project Collection Url ( -projectCollectionUrl https://... )
  • The name of the Feed concerned ( -feedName MyFeed )
  • The name of the Nuget package ( -packageName ... )
  • The version of the Nuget package ( -packageVersion ... )
  • The name of the quality (or view) in the feed to promote to ( -promotedQuality PreRelease --> for example)

 

Comments are closed