]> source.dussan.org Git - archiva.git/commitdiff
Adding additonal output for troubleshooting on ci-server
authorMartin Stockhammer <martin_s@apache.org>
Tue, 3 Apr 2018 21:01:40 +0000 (23:01 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Tue, 3 Apr 2018 21:05:00 +0000 (23:05 +0200)
src/ci/scripts/container_webtest.sh

index 90dbc45beab2f25685625cb99b433abd7370bd2c..eae366e504a2a59d52c40f9131a88e02d40bc09e 100755 (executable)
@@ -70,6 +70,11 @@ function print_usage() {
   echo "Starts or stops the container. Builds the images if necessary"
 }
 
+echo "Date: $(date)"
+docker ps
+echo "netstat"
+netstat -anp |grep 4444
+
 if [ "${START_ARG}" == "start" ]; then
   IMG=`docker images -q ${TAG}`
   # Build the image, if it does not exist
@@ -104,6 +109,11 @@ if [ "${START_ARG}" == "start" ]; then
     RES=$?
   done
   docker logs "${INSTANCE_NAME}"
+  echo "netstat: "
+  netstat -anp |grep 4444
+  echo "Trying curl on Webdriver port: "
+  curl "http://localhost:4444/wd/hub"
+  echo "Result: "$?
 elif [ "${START_ARG}" == "stop" ]; then
   docker logs "${INSTANCE_NAME}"
   stop_instance