diff --git a/src/test/groovy/hudson/plugins/gradle/BaseGradleIntegrationTest.groovy b/src/test/groovy/hudson/plugins/gradle/BaseGradleIntegrationTest.groovy index 89d0b8c5..065633bc 100644 --- a/src/test/groovy/hudson/plugins/gradle/BaseGradleIntegrationTest.groovy +++ b/src/test/groovy/hudson/plugins/gradle/BaseGradleIntegrationTest.groovy @@ -72,7 +72,7 @@ abstract class BaseGradleIntegrationTest extends AbstractIntegrationTest { if(Functions.isWindows()) { try { println 'Killing Gradle processes' - def proc = '''WMIC PROCESS where "Name like 'java%%' AND CommandLine like '%%GradleDaemon%%' AND CommandLine like '%%hudson.plugins.gradle.GradleInstallation%%'" Call Terminate"'''.execute() + def proc = '''WMIC PROCESS where "Name like 'java%%' AND CommandLine like '%%hudson.plugins.gradle.GradleInstallation%%'" Call Terminate"'''.execute() proc.waitFor(30, TimeUnit.SECONDS) println "output: ${proc.text}" println "code: ${proc.exitValue()}"