From 347044557f61d745716083f505b6e16759f2bc45 Mon Sep 17 00:00:00 2001 From: Daniel Languiller Date: Wed, 24 Sep 2025 14:30:10 +1000 Subject: [PATCH] feature: installing mono pre-ubuntu24 steps for smoke tests --- .azure-pipelines/util/smoke-test-steps.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.azure-pipelines/util/smoke-test-steps.yml b/.azure-pipelines/util/smoke-test-steps.yml index 4bfce0757e59..4425ca9d1a35 100644 --- a/.azure-pipelines/util/smoke-test-steps.yml +++ b/.azure-pipelines/util/smoke-test-steps.yml @@ -79,6 +79,18 @@ jobs: Write-Host "List artifacts..." Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\" + - task: Bash@3 + displayName: 'Ensure Mono installed (required for NuGet.exe on 1ES Ubuntu >= 24)' + condition: eq( variables['Agent.OS'], 'Linux' ) + inputs: + targetType: inline + script: | + # Conditionally install Mono if missing from image + command -v mono >/dev/null || { + echo "Mono not found, installing..."; + sudo apt-get update -qq && sudo apt-get install -y mono-complete; + } + - task: NuGetCommand@2 condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo')) displayName: 'Download Previous Az .nupkg Files'