You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2017/04/30 19:44:26 UTC
archiva git commit: Adding license and documentation
Repository: archiva
Updated Branches:
refs/heads/citest 4b5959c3c -> 90529e1ab
Adding license and documentation
Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/90529e1a
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/90529e1a
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/90529e1a
Branch: refs/heads/citest
Commit: 90529e1ab7aa59a31bd6984f2369c5075777ef20
Parents: 4b5959c
Author: Martin Stockhammer <ma...@apache.org>
Authored: Sun Apr 30 21:44:02 2017 +0200
Committer: Martin Stockhammer <ma...@apache.org>
Committed: Sun Apr 30 21:44:02 2017 +0200
----------------------------------------------------------------------
src/ci/scripts/cleanup.ps1 | 39 +++++++++++++++++++++++++++++++++++++--
1 file changed, 37 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/archiva/blob/90529e1a/src/ci/scripts/cleanup.ps1
----------------------------------------------------------------------
diff --git a/src/ci/scripts/cleanup.ps1 b/src/ci/scripts/cleanup.ps1
index 2417869..fd709ed 100644
--- a/src/ci/scripts/cleanup.ps1
+++ b/src/ci/scripts/cleanup.ps1
@@ -1,6 +1,41 @@
#
-# Powershell script for cleaning up remaining browser and selenium server processes on the CI servers
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+# Powershell script for cleaning up remaining browser and selenium server processes on the CI servers
+#
+# Author: Martin Stockhammer <ma...@apache.org>
+# Date : 2017-04-30
+#
+# Descriptions:
+# Stopps processes related to the selenium checks, if they were not stopped by the selenium server, because
+# the job was aborted.
+# The script cannot determine, which of the processes are started by the current job, so if there are
+# parallel jobs running on this server that start processes with the same name and user, these
+# will be stopped too.
+#
+# Per default the script will stop "firefox.exe","iexplore.exe","chrome.exe"
+# and the processes "java.exe","mshta.exe" if their commandline arguments contain "selenium-server"
+#
+# Parameters:
+# -Verbose : If set, more output will be printed
+# -Browsers proc1,proc2 : The list of executables that define the browser processes, that are started by selenium
+# -SeleniumProcesses : The list of processes with the string "selenium-server" in the commandline arguments
param (
[switch]$Verbose = $False,
@@ -34,7 +69,7 @@ if ($Verbose)
}
}
-foreach ($procName in $seleniumProcesses)
+foreach ($procName in $SeleniumProcesses)
{
$processes = Get-WmiObject Win32_Process -Filter "name = '$procName'" | Where-Object {$_.GetOwner().User -eq $currentUser } | Where-Object {$_.CommandLine -match "selenium-server"}
if ($Verbose) {