1
votes

I am trying to build a YAML release pipeline in Azure devops. I already have YAML build pipeline. I can see that when i do a YAML build Azure devops is making azure-pipelines.yml which is checked into a master branch of code repo. Now if I want a separate YAML release (CD) pipeline how can I do it, because when click release there is YAML creation option.

Release option. Release no YAML option

Or do i have to add release to the existing azure-pipelines.yml which already has the build. In this case my build and release is all in one file. how can i then control the release and in some case reject the releases? What is the recommended approach? A bit lost in this YAML CI/CD. Please advise.

1

1 Answers

1
votes

You'll need to enable multi-staged pipelines from the preview features. With them, you'll create just one yaml pipeline for both build and release. Do note that multi-stage pipelines still lack some of the features available in editor-based release pipelines.

https://docs.microsoft.com/en-us/azure/devops/project/navigation/preview-features?view=azure-devops