diff --git a/Resources/AzureDevOps/azure-pipelines.yml b/Resources/AzureDevOps/azure-pipelines.yml index 3acdb79..d06f9f7 100644 --- a/Resources/AzureDevOps/azure-pipelines.yml +++ b/Resources/AzureDevOps/azure-pipelines.yml @@ -2,6 +2,7 @@ variables: SolutionBaseName: '__SolutionBaseName__' BuildPlatform: 'any cpu' BuildConfiguration: 'release' + ArmTemplateRoot: "$(System.DefaultWorkingDirectory)/Resources/ArmTemplates" resources: repositories: @@ -12,16 +13,29 @@ resources: ref: refs/tags/v1.11.2 endpoint: 'GitHub (ESFA)' +pool: + name: NCS - CI and CD + demands: + - msbuild + - visualstudio + +trigger: + branches: + include: + - dev + - master + +pr: + branches: + include: + - dev + - master + stages: - stage: Build - displayName: Build, Test and Analyze jobs: - - job: BuildTestAndAnalyze - pool: - name: NCS - CI and CD - demands: - - msbuild - - visualstudio + - job: + displayName: Build and test application & templates" steps: - template: AzureDevOpsTemplates\Build\StepTemplates\dfc-dotnetcore-build-sonar.yml@dfc-devops parameters: @@ -29,3 +43,8 @@ stages: BuildPlatform: $(BuildPlatform) BuildConfiguration: $(BuildConfiguration) DotNetCoreVersion: '3.1.100' + + # - template: /AzureDevOpsTemplates/Build/StepTemplates/dfc-arm-build.yml@dfc-devops + # parameters: + # ArmTemplateRoot: '${{ variables.ArmTemplateRoot }}' + # SolutionBaseName: '${{ variables.SolutionBaseName }}'