Reputation: 1378
A classical build pipeline in Azure Devops can be exported to YAML, following the documentation of the REST API I use
GET https://dev.azure.com/{organization}/{project}/_apis/build/definitions/{definitionId}/yaml?api-version=7.2-preview.1
I'm stuck doing the same thing for a classic Release; through the Azure Devops user interface, when I edit a classic Release, I can for each individual step press a button that will show me the YAML definition. Is there an automated way to do this (using Powershell)?
Upvotes: 0
Views: 34
Reputation: 5642
Currently, there's no built-in method to export Classic Release pipelines to YAML in Azure DevOps.
Maybe you can explore a third-party tool called yamlizr.
yamlizr generate -pat <your PAT here> -org <your AzDO Organisation Uri> -proj <your AzDO project name> -out c:/temp/myoutputfolder
Please note that this tool isn't an official tool, so use it with caution and thoroughly test it in a safe environment before applying it to your production pipelines. You may need to adjust the generated YAML file based on your actual situation.
Upvotes: 0