Merge "Add chmod 600 to id_rsa ssh key before scp to Instack VM when fetching creds"
authorTim Rozet <trozet@redhat.com>
Tue, 8 Dec 2015 16:59:26 +0000 (16:59 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Tue, 8 Dec 2015 16:59:26 +0000 (16:59 +0000)
jjb/functest/functest.yml
jjb/yardstick/yardstick.yml

index 3a63f0f..95a2cbc 100644 (file)
@@ -18,7 +18,7 @@
             installer_type: 'apex'
             installer_ip: '192.168.X.X'
         - compass:
-            node: 'huawei-us'
+            node: 'huawei-us-deploy-bare-1'
             installer_type: 'compass'
             installer_ip: '192.168.200.2'
     pod:
             installer_type: 'joid'
             installer_ip: '127.0.0.1'
 
+        - huawei-build:
+            node: 'huawei-us-deploy-bare-1'
+            installer_type: 'compass'
+            installer_ip: '192.168.200.2'
+
+
     jobs:
         - 'set-functest-env-{pod}'
         - 'functest-{pod}'
         - string:
             name: SSH_KEY
             default: "/root/.ssh/id_rsa"
-            description: "SSH public key to access the installer VM"
+            description: "SSH private key to access the installer VM"
+
+- parameter:
+    name: huawei-build
+    parameters:
+        - string:
+            name: GIT_BASE
+            default: ssh://gerrit.opnfv.org:29418/$PROJECT
+            description: "Override GIT_BASE"
 
 - parameter:
     name: opnfv-jump-2
index 65d9862..8a6edbb 100644 (file)
             echo "Yardstick: Run benchmark test suites ..."
 
             # Remove old containers
-            docker ps | grep opnfv/yardstick-ci |\
+            docker ps | grep opnfv/yardstick |\
                 awk '{print $1}' | xargs -r docker stop &>/dev/null
-            docker ps -a | grep opnfv/yardstick-ci |\
+            docker ps -a | grep opnfv/yardstick |\
                 awk '{print $1}' | xargs -r  docker rm &>/dev/null
 
+            # Remove existing images if exist
+            if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
+                echo "Docker images to remove:"
+                docker images | head -1 && docker images | grep opnfv/yardstick
+                image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
+                for tag in "${image_tags[@]}"; do
+                    echo "Removing docker image opnfv/yardstick:$tag..."
+                    docker rmi opnfv/yardstick:$tag
+                done
+            fi
+
             # Make sure we have latest image
-            docker pull opnfv/yardstick-ci
+            docker pull opnfv/yardstick
+
+            # Test suites to run
+            TEST_SUITES=opnfv_${POD_NAME}_daily.yaml
 
             docker run \
                --privileged=true \
                 -t \
                 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
                 -e "INSTALLER_IP=${INSTALLER_IP}" \
-                opnfv/yardstick-ci \
-                run_benchmarks
+                -e "POD_NAME=${POD_NAME}" \
+                -e "EXTERNAL_NETWORK=net04_ext" \
+                opnfv/yardstick \
+                run_tests.sh \
+                $TEST_SUITES
 
             echo "Yardstick: done!"