Repository: archiva Updated Branches: refs/heads/citest a178b96e5 -> a02f98c6e
Additional test Project: http://git-wip-us.apache.org/repos/asf/archiva/repo Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/a02f98c6 Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/a02f98c6 Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/a02f98c6 Branch: refs/heads/citest Commit: a02f98c6e26c996e23a667d4e0cbab57def04c84 Parents: a178b96 Author: Martin Stockhammer <[email protected]> Authored: Sun Apr 30 17:43:23 2017 +0200 Committer: Martin Stockhammer <[email protected]> Committed: Sun Apr 30 17:43:23 2017 +0200 ---------------------------------------------------------------------- src/ci/scripts/cleanup.ps1 | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/archiva/blob/a02f98c6/src/ci/scripts/cleanup.ps1 ---------------------------------------------------------------------- diff --git a/src/ci/scripts/cleanup.ps1 b/src/ci/scripts/cleanup.ps1 index 542b93c..6f32e9f 100644 --- a/src/ci/scripts/cleanup.ps1 +++ b/src/ci/scripts/cleanup.ps1 @@ -2,9 +2,20 @@ Powershell script for cleaning up remaining processes on the CI servers #> -$list = dir -foreach ($item in $list) { - $fn = $item.name + "_.txt" - get-itemproperty $item | format-list +Get-Process + +$processes = Get-WmiObject Win32_Process -Filter "name = 'java.exe'" +foreach($proc in $processes) +{ + if($proc.CommandLine.Contains("selenium-server.jar")) + { + Write-Host "stopping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." + Stop-Process -F $proc.ProcessId + } else + { + Write-Host "skipping proccess $($proc.ProcessId) with $($proc.ThreadCount) threads; $($proc.CommandLine.Substring(0, 50))..." + } } -Get-Process -IncludeUserName +Get-Process firefox | Stop-Process +Get-Process chrome | Stop-Process +Get-Process iexplore | Stop-Process
