Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .azure-pipelines/util/smoke-test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Comment on lines +89 to +92
Copy link
Preview

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The compound command uses semicolons which can lead to unexpected behavior if any command fails. Consider using proper error handling with separate conditional blocks or adding set -e to ensure the script fails fast on any error.

Copilot uses AI. Check for mistakes.


- task: NuGetCommand@2
condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
displayName: 'Download Previous Az .nupkg Files'
Expand Down
Loading