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.

Working with variables

Working with variables - Azure Tutorial

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

Start my 1-month free trial

Working with variables

- [Instructor] In this example, we're going to show how we can use variables in our pipelines. Let's go into our NewDadApp, and our build, and let's edit this. And what we've got currently is a build that goes out and runs for myNewDadApp, and this is a specific build for a particular project. I've got the inclusion of the folder as being myNewDadApp, and then I've got it variable-defined at the pipeline level for what the solution is. That is then used throughout this to specify what gets built and how it processes through. Now, what I want to do is be able to use the same build for my API project as well, and so what I want to do is I'm going to change my variables to be a pipeline variable. Up here in our variables, you'll see that I can click on the variables, and I can add a new variable. And I can call this my projectName, and I can put a value on this, and call this myNewDadApp. And I can then allow users to…

Contents