Skip to content

danushkap/test-azure-pipelines

Repository files navigation

Test Azure DevOps Pipelines

GitHub license GitHub issues

This project demonstrate how Azure DevOps Pipelines can be used to;

  1. [CI] build a .NET solution having a very basic ASP.NET Core MVC website
  2. [CD] deploy the site to an Azure App Service with the URL:

https://testazurepipelines.azurewebsites.net/ Azure App Service

The .NET solution DemoWebApplication.sln consist of:

  1. ASP.NET Core MVC project src/DemoWebApplication
  2. xUnit test project tests/DemoWebApplication.Tests

Latest CI/CD status:

Azure DevOps builds Azure DevOps tests Azure DevOps coverage Azure DevOps Artifact Azure DevOps Releases

Continues Integration

For this propose, in Azure DevOps a build pipeline - build.test-azure-pipelines - is configured.

This Pipeline can be executed, to build the master, release or any other branch in this repository.

And the build will:

  • build the .NET solution (projects)
  • publish the web content (to a folder)
  • execute the unit-tests
  • calculate unit-test code coverage
  • create a .nupkg having the published web content
  • push the .nuget package to a NuGet feed

Based on the branch that get build, i.e.:


Package Version History | Semantic Versioning: semver-2.0.0

Major Release Minor Release Hotfix Release Candidate Preview
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact
Azure DevOps Artifact

Continues Delivery

In Azure DevOps, there are two release Pipelines created to deploy the web site to the Azure App Service:

  1. prd_release.test-azure-pipelines - to deploy a package from the Production NuGet Feed
  2. dev_release.test-azure-pipelines - to deploy a package from the Development NuGet Feed

And deploying a release in the pipeline will deploy the .nupkg assigned to that release to the Azure App Service.