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
632 stars 242 forks source link

[Feature Request] Export existing Pipeline Releases and Steps to yml #668

Open deeco opened 5 years ago

deeco commented 5 years ago

Is your feature request related to a problem? Please describe. Would like to source control steps and reproduce pipeline release multiple times using yml

Describe the solution you'd like to be able to export or view existing working release pipeline yml to reproduce similar envs

Additional context Ive looked at the az pipelines release list and the rest API , the project link contains all the data but unclear how to format as yaml to create new release pipeline

deeco commented 5 years ago

believe I have workaround with view yaml for each step and joining each step together

geverghe commented 5 years ago

Hey @deeco , thank you for the request. I think this is a full blow migration tool in the form of a command which I fear we may not be able to prioritize at the moment. Let me check if there are any existing tools to convert release pipelines to YAML. However, in the absence of such a tool, you could potentially use az pipelines release commands, as you mentioned, to view release definition and then map it to YAML steps by yourself as desired.