diff --git a/README.md b/README.md index dff610f8ce..38144f0ae5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://dev.azure.com/locke12110705/Pipeline/_apis/build/status/locke1211.pipelines-dotnet-core?branchName=master)](https://dev.azure.com/locke12110705/Pipeline/_build/latest?definitionId=6&branchName=master) # Sample ASP.NET Core application for Azure Pipelines docs For information on how to set up a pipeline for this repository, see [Create your first pipeline](https://docs.microsoft.com/azure/devops/pipelines/get-started-yaml?view=azure-devops). diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..9c2222e28b --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,17 @@ +# ASP.NET Core +# Build and test ASP.NET Core projects targeting .NET Core. +# Add steps that run tests, create a NuGet package, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- main + +pool: + vmImage: 'ubuntu-latest' + +variables: + buildConfiguration: 'Release' + +steps: +- script: dotnet build --configuration $(buildConfiguration) + displayName: 'dotnet build $(buildConfiguration)'