From 88b80eabaaaa2214f9b756eb401be8173edaceeb Mon Sep 17 00:00:00 2001 From: Carl Mathieu Date: Fri, 17 Nov 2023 19:50:06 -0500 Subject: [PATCH] chore: add variable for pool --- build/azure-pipelines.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index ecad6cf..030e225 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -14,6 +14,8 @@ variables: value: GooseAnalyzers.sln - name: IsReleaseBranch # Should this branch name use the release stage value: $[or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))] +- name: windowsHostedAgentImage + value: 'windows-2022' stages: - stage: Build @@ -28,7 +30,7 @@ stages: GeneratePackageOnBuild: true pool: - vmImage : windows-2022 + vmImage : $(windowsHostedAgentImage) variables: - name: PackageOutputPath # Path where nuget packages will be copied to. @@ -47,7 +49,7 @@ stages: - job: Publish_NuGet_External pool: - vmImage : windows-2022 + vmImage : $(windowsHostedAgentImage) workspace: clean: all # Cleanup the workspaca before starting