Skip to content

Commit

Permalink
Update Windows Gradle Check Runner to use 126GB WINRM Mem on M58xlarge
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Oct 5, 2023
1 parent 6865386 commit ad2d0b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packer/jenkins-agent-win2019-x64-gradle-check.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{
"type":"powershell",
"inline": [
"C:\\Users\\Administrator\\jenkins\\winrm_max_memory.ps1 124"
"C:\\Users\\Administrator\\jenkins\\winrm_max_memory.ps1 126"
]
},
{
Expand Down
3 changes: 3 additions & 0 deletions packer/scripts/windows/winrm_max_memory.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.

echo "The max amount of the winrm memory must be 2GB smaller than max host memory, no less"
echo "Example: 128GB total, winrm must use 126GB, else packer will fail on the EC2 internal preparation scripts"

$memorygb = [int]$args[0]
$memorygb

Expand Down

0 comments on commit ad2d0b5

Please sign in to comment.