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:
Mark Vieira 2020-03-27 08:02:56 -07:00
parent 0d17295601
commit 2ca8850e13
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105

View File

@ -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