From 8b9f1d90cd9bfa48f77bb2cab09beffeff15210c Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Wed, 21 Dec 2022 18:14:33 +1000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- .azure/pipelines/azure-pipelines.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.azure/pipelines/azure-pipelines.yml b/.azure/pipelines/azure-pipelines.yml index 2b246795..e0c6a07c 100644 --- a/.azure/pipelines/azure-pipelines.yml +++ b/.azure/pipelines/azure-pipelines.yml @@ -4,6 +4,13 @@ trigger: branches: include: - source + paths: + include: + - src + +variables: + - name: solutionFile + value: 'src/Server-Managers.sln' steps: - task: NuGetToolInstaller@1 @@ -14,14 +21,12 @@ steps: - task: NuGetCommand@2 displayName: 'NuGet restore' inputs: - restoreSolution: '$(SolutionFile)' + restoreSolution: '$(solutionFile)' - task: PowerShell@2 displayName: 'Apply Semantic Versioning to Assemblies' inputs: targetType: filePath - filePath: '.\src\_deployment\scripts\ApplySemanticVersioningToAssemblies.ps1' + filePath: './.azure/scripts/ApplySemanticVersioningToAssemblies.ps1' + arguments: "-applicationName $(ApplicationName) -pathToSearch './src' -buildNumber $()" pwsh: true - env: - BUILD_APPLICATION_NAME: $(ApplicationName) - BUILD_SOURCE_PATH: $(Build.SourcesDirectory)\src