mirror of
https://github.com/digital-asset/daml.git
synced 2024-07-14 08:00:29 +03:00
windows: CI agent diagnostics (#1146)
This commit is contained in:
parent
a5cf706040
commit
e6c7421580
@ -8,6 +8,9 @@ steps:
|
||||
# to upload to the bazel cache
|
||||
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
||||
|
||||
- powershell: '.\ci\windows-diagnostics.ps1'
|
||||
displayName: 'Agent diagnostics'
|
||||
|
||||
- powershell: '.\build.ps1'
|
||||
displayName: 'Build'
|
||||
|
||||
|
15
ci/windows-diagnostics.ps1
Normal file
15
ci/windows-diagnostics.ps1
Normal file
@ -0,0 +1,15 @@
|
||||
Set-StrictMode -Version latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$info = Get-CimInstance -ClassName win32_operatingsystem
|
||||
|
||||
$info | format-table CSName
|
||||
|
||||
$info | format-table LastBootUpTime
|
||||
|
||||
$info | format-table FreePhysicalMemory, TotalVisibleMemorySize
|
||||
|
||||
get-wmiobject win32_logicaldisk | format-table `
|
||||
Name,`
|
||||
@{n="Size [GB]";e={[math]::truncate($_.size / 1GB)}},`
|
||||
@{n="Free [GB]";e={[math]::truncate($_.freespace / 1GB)}}
|
Loading…
Reference in New Issue
Block a user