From 0523c24cad115ed3ea2205bb9f1db748739f8dac Mon Sep 17 00:00:00 2001 From: Carl Mathieu Date: Fri, 17 Nov 2023 19:29:50 -0500 Subject: [PATCH] fix: switch to hosted agents --- build/azure-pipelines.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index f5b4101..cd8bcf4 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -3,11 +3,6 @@ trigger: include: - main -resources: - containers: - - container: windows - image: nventive/vs_build-tools:17.2.5 - variables: - name: NUGET_VERSION value: 6.2.0 @@ -20,8 +15,8 @@ variables: - 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/'))] # Pool names -- name: windowsPoolName - value: 'windows 2022' +- name: windowsHostedAgentImage + value: 'windows-2022' stages: - stage: Build @@ -36,7 +31,7 @@ stages: GeneratePackageOnBuild: true pool: - name: $(windowsPoolName) + vmImage: $(windowsHostedAgentImage) variables: - name: PackageOutputPath # Path where nuget packages will be copied to. @@ -45,8 +40,6 @@ stages: workspace: clean: all # Cleanup the workspaca before starting - container: windows - steps: - template: stage-build.yml @@ -57,7 +50,7 @@ stages: - job: Publish_NuGet_External pool: - name: $(windowsPoolName) + vmImage: $(windowsHostedAgentImage) workspace: clean: all # Cleanup the workspaca before starting