Skip to content

Commit 09867ec

Browse files
authored
Parameterize windows packaging test script (elastic#58980)
1 parent 54e0c95 commit 09867ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .ci/os.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
param($GradleTasks='destructiveDistroTest')
2+
13
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
24
{
35
# Relaunch as an elevated process:
@@ -25,7 +27,6 @@ Remove-Item -Recurse -Force \tmp -ErrorAction Ignore
2527
New-Item -ItemType directory -Path \tmp
2628

2729
$ErrorActionPreference="Continue"
28-
# TODO: remove the task exclusions once dependencies are set correctly and these don't run for Windows or buldiung the deb on windows is fixed
29-
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --no-daemon --scan --console=plain destructiveDistroTest
30+
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --no-daemon --scan --console=plain $GradleTasks
3031

3132
exit $LastExitCode

0 commit comments

Comments
 (0)