Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
618 stars 240 forks source link

[Feature Request] az pipeline build or release update configuration #934

Open millanie opened 4 years ago

millanie commented 4 years ago

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

atbagga commented 4 years ago

@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.

anumalasri commented 1 year ago

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?

christian523 commented 3 weeks ago

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