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 - Azure Tutorial
From the course: Azure DevOps: Continuous Delivery with YAML Pipelines
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Modernize your application6m 55s
-
(Locked)
Triggers in pipelines2m 12s
-
(Locked)
Working with triggers4m 29s
-
(Locked)
Variables and scope2m 47s
-
(Locked)
Working with variables3m 1s
-
(Locked)
Pipeline templates59s
-
(Locked)
Adding templates to a project4m 53s
-
(Locked)
Variable libraries52s
-
(Locked)
Working with variable libraries3m 55s
-
(Locked)
-
-