diff options
author | Marc A. Paradise <marc.paradise@gmail.com> | 2022-09-22 17:30:57 -0400 |
---|---|---|
committer | Marc A. Paradise <marc.paradise@gmail.com> | 2022-09-28 11:21:29 -0400 |
commit | 223f0a5ce02b0add67afd44cbc8356b9ca49925d (patch) | |
tree | 98fce365f0955b78a4d651820188ebb7fc291532 /omnibus/omnibus-test.ps1 | |
parent | f0b21e1a7b96a9b4600a65c6a7d44ad90f04f824 (diff) | |
download | chef-mp/platform-verification-output.tar.gz |
Add OS version/name output to omnibus-pipelinemp/platform-verification-output
This allows us to verify that we are running the OS/version we think we
are in our omnibus build and test pipelines - as we have found that
every once in a while, these things do not match.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Diffstat (limited to 'omnibus/omnibus-test.ps1')
-rw-r--r-- | omnibus/omnibus-test.ps1 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1 index 2c4331ff2f..e925976995 100644 --- a/omnibus/omnibus-test.ps1 +++ b/omnibus/omnibus-test.ps1 @@ -1,6 +1,12 @@ # Stop script execution when a non-terminating error occurs $ErrorActionPreference = "Stop" +# We have seen rare cases where the platform we think we are testing on is not the +# platform we are really testing on. We're outputting the complete OS name here +# so that we can confirm the name in the build log when necessary. +Write-Output "Verifying the Windows version we're running on" +Write-Output (Get-WMIObject win32_operatingsystem).name + # install chocolatey Set-ExecutionPolicy Bypass -Scope Process -Force [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 |