Skip to content

Commit 817ade1

Browse files
committed
Support added msbuild arguments in RunHelix.ps1
nit: use `[switch]` instead of `[bool]`
1 parent 8504350 commit 817ade1

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

eng/scripts/RunHelix.ps1

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,27 @@
1919
Redhat.7.Amd64.Open
2020
.PARAMETER RunQuarantinedTests
2121
By default quarantined tests are not run. Set this to $true to run only the quarantined tests.
22+
.PARAMETER TargetArchitecture
23+
The CPU architecture to build for (x64, x86, arm). Default=x64
24+
.PARAMETER MSBuildArguments
25+
Additional MSBuild arguments to be passed through.
2226
#>
27+
[CmdletBinding(PositionalBinding = $false)]
2328
param(
2429
[Parameter(Mandatory=$true)]
2530
[string]$Project,
31+
2632
[string]$HelixQueues = "Windows.10.Amd64.Open",
33+
[switch]$RunQuarantinedTests,
34+
35+
[ValidateSet('x64', 'x86', 'arm', 'arm64')]
2736
[string]$TargetArchitecture = "x64",
28-
[bool]$RunQuarantinedTests = $false
37+
38+
# Capture the rest
39+
[Parameter(ValueFromRemainingArguments = $true)]
40+
[string[]]$MSBuildArguments
2941
)
42+
3043
$ErrorActionPreference = 'Stop'
3144
$ProgressPreference = 'SilentlyContinue' # Workaround PowerShell/PowerShell#2138
3245

@@ -43,4 +56,5 @@ Write-Host -ForegroundColor Yellow "And if packing for a different platform, add
4356
$HelixQueues = $HelixQueues -replace ";", "%3B"
4457
dotnet msbuild $Project /t:Helix /p:TargetArchitecture="$TargetArchitecture" /p:IsRequiredCheck=true `
4558
/p:IsHelixDaily=true /p:HelixTargetQueues=$HelixQueues /p:RunQuarantinedTests=$RunQuarantinedTests `
46-
/p:_UseHelixOpenQueues=true /p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
59+
/p:_UseHelixOpenQueues=true /p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log `
60+
@MSBuildArguments

0 commit comments

Comments
 (0)