Skip to content

Commit c4be6b2

Browse files
authored
release: run nuget publish job on windows (#2333)
The legacy `NuGetCommand@2` task (used internally by the 1ES `output: nuget` template) requires Mono on Linux. Recent updates to the `ubuntu-x86_64-ado1es` image to Ubuntu 24.04+ removed Mono availability, breaking the publish step with: > The task has failed because you are using Ubuntu 24.04 or later without mono installed. Move the nuget publish job to the `win-x86_64-ado1es` image so the task uses the native `nuget.exe` and avoids the Mono dependency entirely. The same Windows pool is already used by the `dotnet_tool` build job that produces these packages. There will be a small performance hit in the build pipeline since Windows agents take longer to provision (but better than this job failing as it does now).
2 parents c289984 + 3abada6 commit c4be6b2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.azure-pipelines/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,13 @@ extends:
872872
dependsOn: release_validation
873873
condition: and(succeeded(), eq('${{ parameters.nuget }}', true))
874874
pool:
875+
# Run on Windows so the underlying NuGetCommand@2 task can use the
876+
# native nuget.exe. On Ubuntu 24.04+ the legacy NuGet task fails
877+
# because Mono is no longer available.
878+
# See https://aka.ms/nuget-task-mono.
875879
name: GitClientPME-1ESHostedPool-intel-pc
876-
image: ubuntu-x86_64-ado1es
877-
os: linux
880+
image: win-x86_64-ado1es
881+
os: windows
878882
variables:
879883
version: $[dependencies.release_validation.outputs['version.value']]
880884
templateContext:

0 commit comments

Comments
 (0)