Skip to content

Turn your ADO Release Pipeline into YAML

License

Notifications You must be signed in to change notification settings

builddoctor/yamlease

Repository files navigation

YAML from relEASE definition

This project allows you to generate a YAML pipeline from an existing ADO "release" pipeline. The YAML pipeline is generated from the "release" pipeline definition, not from the "release" pipeline run.

Why?

Release Pipelines, with their graphical editor, were a great idea in the previous decade. Now that release isn't solely an ops team concern (and some shops no longer have an ops team), it makes sense to move towards YAML pipelines:

  • Microsoft have made it clear that YAML pipelines are the future
  • YAML pipelines are easier to version control
  • YAML pipelines are easier to share
  • You're probably building code in YAML pipelines already

Usage

Prerequisites

  • Azure CLI with the ADO extension
  • Ruby 3.0 distribution
  • this repo cloned locally

Steps

Install Yamlease:

gem install yamlease

Extract your release definition from ADO:

az pipelines release definition list --organization https://dev.azure.com/$ORG --project "$PROJECT" 
az pipelines release definition show --organization https://dev.azure.com/$ORG --project "$PROJECT"  --id $ID| tee my_release.yml

Run Yamlease:

ye  my_release.yml > my_pipeline.yml

Paste your pipeline into ADO and tweak as necessary. You'll want to add in a pipeline to build the application that you're releasing in the first stage.

About

Turn your ADO Release Pipeline into YAML

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published