mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
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?).
This commit is contained in:
parent
0d17295601
commit
2ca8850e13
@ -5,7 +5,7 @@ If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdent
|
||||
exit
|
||||
}
|
||||
|
||||
$AppProps = ConvertFrom-StringData (Get-Content .ci/java-versions.properties -raw)
|
||||
$AppProps = ConvertFrom-StringData (Get-Content .ci/java-versions.properties -raw)
|
||||
$env:ES_BUILD_JAVA=$AppProps.ES_BUILD_JAVA
|
||||
$env:ES_RUNTIME_JAVA=$AppProps.ES_RUNTIME_JAVA
|
||||
|
||||
@ -26,6 +26,6 @@ New-Item -ItemType directory -Path \tmp
|
||||
|
||||
$ErrorActionPreference="Continue"
|
||||
# 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
|
||||
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --scan --console=plain destructiveDistroTest
|
||||
& .\gradlew.bat -g "C:\Users\$env:username\.gradle" --parallel --no-daemon --scan --console=plain destructiveDistroTest
|
||||
|
||||
exit $LastExitCode
|
||||
|
Loading…
x
Reference in New Issue
Block a user