azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

[Feature Request] az pipeline build or release update configuration

Open millanie opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe. My team has lots of projects and each project has the release pipeline. Because of the audit, we need to keep the release history for a year. Currently, we are updating the retention days to keep as 365 MANUALLY. As the number of pipelines is increased, the manual tasks are increasing.

Describe the solution you'd like az pipelines release “edit” --name {pipeline name} --retentionPolicy {"daysToKeep":365, "releasesToKeep":100}

similar features like this https://docs.microsoft.com/en-us/rest/api/azure/devops/release/definitions/update?view=azure-devops-rest-5.1

millanie avatar Jan 14 '20 12:01 millanie

@millanie We will keep the issue open and prioritize on the basis of community upvotes.

Meanwhile you can use az devops invoke command to if you want to create an automation script for using some API.

atbagga avatar Jan 16 '20 08:01 atbagga

az devops cli do not have the ability to match features from the Azure DevOps portal... It would be necessary to match.

If MSFT has different plans and not upgrading CLI, what are the alternatives?

anumalasri avatar Nov 01 '22 23:11 anumalasri

May be a related request/question: Using the azure cli, is there a way to set the "retain" flag to an existing pipeline build?

christian523 avatar Jul 09 '24 10:07 christian523