Skip to content

Commit 2ca8850

Browse files
committed
Disable Gradle daemon when executing Windows packaging tests (#54316)
The powershell call operator (&) seems to wait on any child processes. In the case of Gradle build invocation, the daemon causes the script execution to hang until the daemon terminates (or 5 minutes elapses?).
1 parent 0d17295 commit 2ca8850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/os.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdent
55
exit
66
}
77

8-
$AppProps = ConvertFrom-StringData (Get-Content .ci/java-versions.properties -raw)
8+
$AppProps = ConvertFrom-StringData (Get-Content .ci/java-versions.properties -raw)
99
$env:ES_BUILD_JAVA=$AppProps.ES_BUILD_JAVA
1010
$env:ES_RUNTIME_JAVA=$AppProps.ES_RUNTIME_JAVA
1111

@@ -26,6 +26,6 @@ New-Item -ItemType directory -Path \tmp
2626

2727
$ErrorActionPreference="Continue"
2828
# 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 --scan --console=plain destructiveDistroTest
29+
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --no-daemon --scan --console=plain destructiveDistroTest
3030

3131
exit $LastExitCode

0 commit comments

Comments
 (0)