Force copy of private ssh key if apex in functest jjob 03/4103/2
authorjose.lausuch <jose.lausuch@ericsson.com>
Tue, 8 Dec 2015 19:20:45 +0000 (20:20 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Tue, 8 Dec 2015 19:24:26 +0000 (20:24 +0100)
Also, remove previous parameter from macros (not needed)

Change-Id: I4100ff1322560e79ca4511f0a05c87335ed6be67
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
jjb/functest/functest.yml

index 95a2cbc..e55164b 100644 (file)
             installer_type: 'compass'
             installer_ip: '192.168.200.2'
     pod:
-        - opnfv-jump-1:
-            node: 'opnfv-jump-1'
-            installer_type: 'apex'
-            installer_ip: '192.168.X.X'
-
         - orange-test1:
             node: 'orange-test1'
             installer_type: 'fuel'
             name: GIT_BASE
             default: ssh://gerrit.opnfv.org:29418/$PROJECT
             description: "Override GIT_BASE"
-        - string:
-            name: SSH_KEY
-            default: "/root/.ssh/id_rsa"
-            description: "SSH private key to access the installer VM"
 
 - parameter:
     name: huawei-build
             if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
                 INSTALLER_IP=$(cat instack /var/lib/libvirt/dnsmasq/default.leases \
                     |sed 's/.*192/192/g' | sed 's/\ in.*//g')
+                sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
             fi
             echo "Functest: Start Docker and prepare environment"
             envs="INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME}"
             if [ -n "${LAB_CONFIG}" ]; then
                 labconfig="-v ${LAB_CONFIG}:/home/opnfv/functest/conf/openstack.creds"
             fi
-            if [ -n "${SSH_KEY}" ]; then
-                sshkey="-v ${SSH_KEY}:/root/.ssh/id_rsa"
-            fi
 
             docker pull opnfv/functest:latest_stable
             cmd="docker run -id -e $envs ${labconfig} ${sshkey} opnfv/functest:latest_stable /bin/bash"