summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/htmlize/finish.sh
diff options
context:
space:
mode:
authorrohitsakala <rohitsakala@gmail.com>2016-12-16 00:38:41 +0530
committerrohitsakala <rohitsakala@gmail.com>2017-01-04 17:41:38 +0530
commit0d87caa1b785588ffb9a92f37420bc688ebed01d (patch)
treede1800996bf81f687c4fa5aba28dac74f99711bb /utils/test/testapi/htmlize/finish.sh
parent508f72a1bec40410e1c008f13fbdfaf2cf56611d (diff)
Create Jenkins Job for testapi automation
Right now, only builder for creating testapi doc is included JIRA: FUNCTEST-664 Change-Id: If0a34154084c1d01ed6b997d2226779da43bcb14 Signed-off-by: rohitsakala <rohitsakala@gmail.com>
Diffstat (limited to 'utils/test/testapi/htmlize/finish.sh')
-rw-r--r--utils/test/testapi/htmlize/finish.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/test/testapi/htmlize/finish.sh b/utils/test/testapi/htmlize/finish.sh
new file mode 100644
index 000000000..dc3aa868b
--- /dev/null
+++ b/utils/test/testapi/htmlize/finish.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+
+# Stop opnfv-testapi server
+proc_number=`ps -ef | grep opnfv-testapi | grep -v grep | wc -l`
+
+if [ $proc_number -gt 0 ]; then
+ procs=`ps -ef | grep opnfv-testapi | grep -v grep`
+ echo "Kill opnfv-testapi server $procs"
+ ps -ef | grep opnfv-testapi | grep -v grep | awk '{print $2}' | xargs kill -kill &>/dev/null
+fi