88. Reusing code in Azure DevOps pipelines with YAML templates

Опубликовано: 28 Май 2026
на канале: Betabit
585
12

https://www.betabit.nl/en/betatalks

Maarten and Oscar discuss how to reuse code in YAML pipelines in Azure DevOps. They show how to create templates at the stage, job, and step levels that can be reused across multiple pipelines. Maarten demonstrates taking an existing classic pipeline and converting it to YAML templates that can be reused for building and deploying two similar Azure Functions apps. It highlights how templates can be shared across repositories and how parameters can be used to customize the templates. The full YAML is shown to help debug templates.

Links for more information:
https://learn.microsoft.com/en-us/azu...

Time stamps:
00:00 - Introduction
00:22 - Overview of discussing YAML pipelines and code reuse
01:40 - Discussion of classic builds vs YAML pipelines
02:01 - Further comparison of classic and YAML pipelines
03:32 - Benefits of YAML pipelines being stored in code repo
05:26 - Overview of YAML pipeline structure
07:06 - Introduction to using templates in YAML
10:26 - Starting the case study example
11:10 - Demonstrating the build template
12:26 - Converting classic tasks to YAML steps
13:35 - Referencing templates in other repos
15:37 - Using templates to add new environments
17:56 - Feature to download full YAML for debugging

Join us on our Discord channel:   / discord  

There is more to come!

https://www.betabit.nl/en