Creating an Azure DevOps build pipeline

After having planned and organized your work and created your Git repository, you should now configure an Azure DevOps build pipeline, which will allow you to do CI for your application:

  1. Open Visual Studio 2019, go to the Team Explorer - Home tab, and then click on the Builds button:

  1. Next, click on the New Build Definition link:

  1. The Azure DevOps website is opened, and when you click the new pipeline button and then select your source as Azure Repos, you are presented with a choice of build definition templates. Select the ASP.NET Core template:

  1. In the new build definition, enter a name, and select your default agent pool. We recommend using the option Hosted Windows 2019 with VS2019:

  1. To choose a source repository, click on Get sources. For our example, we use the default values (this project, branch: master):

  1. To enable CI, click on Triggers in the build definition menu, and then tick the Enable continuous integration checkbox:

  1. After verifying that the Git repository and master branch have been selected correctly, click on the Save or Save & queue button. The configuration has been finished, and a build will automatically be triggered each time code is committed to the repository:

Creating a build pipeline is as simple as that. After building, it's only natural that we want to release our code, so we will look at how we can create a release pipeline next, in the following section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.9.48