From 2ca8850e1357fe949f5beb9fbdaa40d21fa601ca Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Fri, 27 Mar 2020 08:02:56 -0700 Subject: [PATCH] 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?). --- .ci/os.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/os.ps1 b/.ci/os.ps1 index 10b9c1bd8f6..54f5ca54ffa 100644 --- a/.ci/os.ps1 +++ b/.ci/os.ps1 @@ -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