vsteam icon indicating copy to clipboard operation
vsteam copied to clipboard

Feature Request: Pause/Resume DefinitionQueue

Open japj opened this issue 6 years ago • 3 comments

Add support for enable/disable/pause a build definition queue:

https://docs.microsoft.com/en-us/rest/api/azure/devops/build/definitions/update?view=azure-devops-rest-5.1#definitionqueuestatus

Not sure which command this belongs to though

japj avatar Oct 08 '19 13:10 japj

I would implement this, but @DarqueWarrior maybe can give feedback on how to handle these kinds of things.

Because practically this is part of the build definition, so you could control it by adjusting the build definition. The process would be

  1. Get-VSTeamBuildDefinition
  2. Alter the return JSON to adjust the setting
  3. call Update-VSTeamBuildDefinition

Because I think there are many features in a build definition that could be implemented in e.g. "Update-VSTeamBuildDefinition", but the question is on which criteria do we decide when an extra parameter should be used instead of using some sort of JSON object.

SebastianSchuetze avatar Oct 09 '19 18:10 SebastianSchuetze

Instead of changing Update-VSTeamBuildDefinition should we add a Pause-VSTeamBuildDefintion and Resume-VSTeamBuildDefintion? Each of those can take the steps @SebastianSchuetze states above... Thoughts?

DarqueWarrior avatar Nov 09 '19 18:11 DarqueWarrior

I like it (Pause/Resume), keeps clutter away from existing one‘s

MichelZ avatar Feb 25 '20 19:02 MichelZ