Retrieve latest_stable bugfix in Functest jenkins job 83/3883/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Wed, 2 Dec 2015 14:24:59 +0000 (15:24 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Wed, 2 Dec 2015 14:24:59 +0000 (15:24 +0100)
Change-Id: I9e6823de47156311a70798cbaf7cb1a11777df6a
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
jjb/functest/functest.yml

index 17a6db8..53da3ee 100644 (file)
             envs="INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP}"
             docker pull opnfv/functest:latest_stable
             echo "Functest: Running docker run command: docker run -i -e $envs opnfv/functest /bin/bash &"
-            docker run -i -e $envs opnfv/functest /bin/bash &
+            docker run -i -e $envs opnfv/functest:latest_stable /bin/bash &
             docker ps -a
             sleep 5
-            container_id=$(docker ps -a | grep opnfv/functest | awk '{print $1}' | head -1)
+            container_id=$(docker ps | grep 'opnfv/functest:latest_stable' | awk '{print $1}' | head -1)
             echo "Container ID=${container_id}"
             if [ -z ${container_id} ]; then
                 echo "Cannot find opnfv/functest container ID ${container_id}. Please check if it is existing."
             docker start ${container_id}
             sleep 5
             docker ps
-            if [ $(docker ps | grep opnfv/functest | wc -l) == 0 ]; then
+            if [ $(docker ps | grep 'opnfv/functest:latest_stable' | wc -l) == 0 ]; then
                 echo "The container opnfv/functest with ID=${container_id} has not been properly started. Exiting..."
                 exit 1
             fi