Bug fixes for QTIP Jenkins Job 35/6435/2
authorNauman_Ahad <Nauman_Ahad@dell.com>
Tue, 12 Jan 2016 21:16:27 +0000 (02:16 +0500)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 13 Jan 2016 08:48:15 +0000 (08:48 +0000)
Bugs in qtip-cleanup and qtip-run-suite builders.
Spaces removed in qtip-cleanup builder to ensure
variables take the given values.
container_id again redeclared and echoed in
qtip-run-suite for debugging.

Change-Id: I608001fbc91d34870debe2cd620d9a5e19e82dd6
Signed-off-by: Nauman_Ahad <Nauman_Ahad@dell.com>
jjb/qtip/qtip.yml

index c442c6c..1f761de 100644 (file)
     name: qtip-run-suite
     builders:
         - shell: |
-            #!/bin/bash
+            #!/bin/basih
+            echo "The container id is:"
+            container_id=$(docker ps | grep 'opnfv/qtip:latest' | awk '{print $1}' | head -1)
+            echo $container_id
             QTIP_REPO=/home/opnfv/repos/qtip
             docker exec -t ${container_id} $QTIP_REPO/docker/run_qtip.sh
 
             # Remove previous running containers if exist
             if [[ ! -z $(docker ps -a | grep opnfv/qtip) ]]; then
                 echo "Removing existing opnfv/qtip containers..."
-                running_containers= $(docker ps | grep opnfv/qtip | awk '{print $1}')
+                running_containers=$(docker ps | grep opnfv/qtip | awk '{print $1}')
                 docker stop ${running_containers}
-                all_containers= $(docker ps -a | grep opnfv/qtip | awk '{print $1}')
+                all_containers=$(docker ps -a | grep opnfv/qtip | awk '{print $1}')
                 docker rm ${all_containers}
             fi