From 1fc8e893ee085d0bff29e671bf11a8f1d227dc15 Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Fri, 8 Dec 2023 13:33:54 -0800 Subject: [PATCH] Add inventory pipeline to inventory software on machines we use for builds (#7395) * Add inventory pipeline for PS modules * Fix pipeline * Try again * Show `dotnet --info` * Add custom agents as well * Update inventory scripts * Remove maxParallel * Resolve PR feedback --- eng/pipelines/agent-software-inventory.yml | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 eng/pipelines/agent-software-inventory.yml diff --git a/eng/pipelines/agent-software-inventory.yml b/eng/pipelines/agent-software-inventory.yml new file mode 100644 index 00000000000..97a16ea51de --- /dev/null +++ b/eng/pipelines/agent-software-inventory.yml @@ -0,0 +1,47 @@ +# Inventory PowerShell modules installed + +trigger: none + +strategy: + matrix: + Linux: + Pool: Azure Pipelines + OSVmImage: ubuntu-latest + Windows: + Pool: Azure Pipelines + OSVmImage: windows-latest + MacOS: + Pool: Azure Pipelines + OSVmImage: macOS-latest + CustomLinux20: + Pool: azsdk-pool-mms-ubuntu-2004-general + OSVmImage: MMSUbuntu20.04 + CustomLinux22: + Pool: azsdk-pool-mms-ubuntu-2204-general + OSVmImage: MMSUbuntu22.04 + CustomWindows: + Pool: azsdk-pool-mms-win-2022-general + OSVmImage: MMS2022 + CustomMacOS: + Pool: Azure Pipelines + OSVmImage: macos-11 + +pool: + name: $(Pool) + vmImage: $(OSVmImage) + +steps: +- bash: sudo chown -R runner ~/.Azure + displayName: (MacOS) Grant access to ~/.Azure + condition: contains(variables['OSVmImage'], 'mac') + +- bash: az --version + displayName: Az CLI info + +- bash: dotnet --info + displayName: .NET information + +- pwsh: | + eng/common/scripts/Import-AzModules.ps1 + Get-Module -List + displayName: Az PowerShell info