What are pipeline templates and how are they used? Answer: Templates let you reuse pipeline steps across projects — great for standardization. Example: You can create a reusable file: 📄 .azure-pipelines/build-template.yml steps: - script: dotnet restore - script: dotnet build Then in your main pipeline: extends: template: .azure-pipelines/build-template.yml This keeps your YAML DRY (Don’t Repeat Yourself) and consistent.
What are pipeline templates and how are they used?
Answer:
Templates let you reuse pipeline steps across projects — great for standardization.
Example:
You can create a reusable file:
📄 .azure-pipelines/build-template.yml
steps:
- script: dotnet restore
- script: dotnet build
Then in your main pipeline:
extends:
template: .azure-pipelines/build-template.yml
This keeps your YAML DRY (Don’t Repeat Yourself) and consistent.