node: 'opnfv-jump-1'
installer_type: 'apex'
installer_ip: '192.168.X.X'
+ - compass:
+ node: 'huawei-us-deploy-bare-1'
+ installer_type: 'compass'
+ installer_ip: '192.168.200.2'
+ - joid:
+ node: 'intel-us-deploy-bare-pod5'
+ installer_type: 'compass'
+ installer_ip: '127.0.0.1'
pod:
- - orange-build:
- node: 'orange-build'
- installer_type: 'foreman'
+ - orange-test1:
+ node: 'orange-test1'
+ installer_type: 'fuel'
installer_ip: '172.30.10.73'
+ - orange-fr-pod2:
+ node: 'orange-fr-pod2'
+ 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'
+ - joid-build:
+ node: 'intel-us-deploy-bare-pod5'
+ installer_type: 'joid'
+ installer_ip: '127.0.0.1'
jobs:
- 'set-functest-env-{pod}'
node: '{pod}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'set-functest-env'
node: '{pod}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-cleanup'
node: '{node}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'set-functest-env'
node: '{node}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-cleanup'
node: '{pod}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-rally-bench'
node: '{pod}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-tempest-smoke'
node: '{pod}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- shell: |
- 'functest-odl'
node: '{pod}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-vping'
refspec: ''
branch: master
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-cleanup'
- 'set-functest-env'
refspec: ''
branch: master
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-cleanup'
- 'set-functest-env'
refspec: ''
branch: master
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-vims'
- job-template:
name: 'functest-verify-{stream}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
parameters:
- project-parameter:
project: '{project}'
description: "Directory where the Functest repository is cloned"
- parameter:
- name: orange-build
+ name: orange-test1
+ parameters:
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/$PROJECT
+ description: "Override GIT_BASE"
+
+- parameter:
+ name: orange-fr-pod2
parameters:
- string:
name: GIT_BASE
default: https://gerrit.opnfv.org/gerrit/$PROJECT
description: "Override GIT_BASE"
+ - string:
+ name: LAB_CONFIG
+ default: "/home/opnfv/repos/functest"
+ description: "Openstack credentials on the dev lab"
- parameter:
name: opnfv-jump-1
default: ssh://gerrit.opnfv.org:29418/$PROJECT
description: "Override GIT_BASE"
+- parameter:
+ name: huawei-build
+ parameters:
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/$PROJECT
+ description: "Override GIT_BASE"
+
+- parameter:
+ name: joid-build
+ parameters:
+ - string:
+ name: GIT_BASE
+ default: ssh://gerrit.opnfv.org:29418/$PROJECT
+ description: "Override GIT_BASE"
+
- parameter:
name: opnfv-jump-2
parameters:
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}"
+ envs="INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME}"
+ labconfig=""
+ # If production lab then creds may be retrieved dynamically
+ # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
+ if [ -n "${LAB_CONFIG}" ]; then
+ labconfig="-v ${LAB_CONFIG}:/home/opnfv/functest/conf/openstack.creds"
+ fi
+
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:latest_stable /bin/bash &
+ cmd="docker run -id -e $envs ${labconfig} ${sshkey} opnfv/functest:latest_stable /bin/bash"
+ echo "Functest: Running docker run command: ${cmd}"
+ ${cmd}
docker ps -a
sleep 5
container_id=$(docker ps | grep 'opnfv/functest:latest_stable' | awk '{print $1}' | head -1)