From the course: Azure DevOps: Continuous Delivery with YAML Pipelines

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding templates to a project

Adding templates to a project - Azure Tutorial

From the course: Azure DevOps: Continuous Delivery with YAML Pipelines

Start my 1-month free trial

Adding templates to a project

- [Instructor] So now that we've got a ci-build for myNewDadApp, I've got steps that are common that I would use for my API project as well and any other .NET Core project. Because of that, I want to create a template and reuse those steps in the other pipelines. So let's go into Visual Studio and then here, you'll see that I have my ci-build and this is defined down here where I've got my project going, I've got the steps that are running and what I want to do is I want to create a new file that I'm going to share. Now I'm going to share between myNewDadApp and myAPI project so it makes sense to add a folder for that. Now Visual Studio has a folder view that I can switch to, which lets me now manage this from here. Now what I've done is I have created a common folder and inside of here, I'm going to add a new file. I'm going to call this file, ci-template and my ci-template file, we'll just add a comment here is…

Contents