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-pod5'
+ installer_type: 'compass'
+ installer_ip: '127.0.0.1'
pod:
- 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'
+ - intel-pod5:
+ node: 'intel-pod5'
+ installer_type: 'joid'
+ installer_ip: '127.0.0.1'
jobs:
- 'set-functest-env-{pod}'
- 'functest-odl-test-{pod}'
- 'functest-vims-{installer}-{stream}'
- 'functest-vping-test-{pod}'
- - 'functest-daily-{stream}'
- - 'functest-merge-{stream}'
- 'functest-verify-{stream}'
# stream: branch with - in place of / (eg. stable-arno)
- job-template:
name: set-functest-env-{pod}
- node: '{pod}'
-
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
+ node: '{node}'
builders:
- 'set-functest-env'
- job-template:
name: clean-functest-env-{pod}
- node: '{pod}'
-
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
+ node: '{node}'
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'
- job-template:
name: functest-openstack-bench-test-{pod}
- node: '{pod}'
-
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
+ node: '{node}'
builders:
- 'functest-rally-bench'
- job-template:
name: functest-openstack-tempest-smoke-test-{pod}
- node: '{pod}'
-
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
+ node: '{node}'
builders:
- 'functest-tempest-smoke'
- job-template:
name: functest-odl-test-{pod}
- node: '{pod}'
-
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
+ node: '{node}'
builders:
- shell: |
- job-template:
name: functest-vping-test-{pod}
- node: '{pod}'
-
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
+ node: '{node}'
builders:
- 'functest-vping'
- job-template:
name: functest-{pod}
- node: '{pod}'
+ node: '{node}'
parameters:
- project-parameter:
refspec: ''
branch: master
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-cleanup'
- 'set-functest-env'
- 'functest-all'
- - 'functest-store-results'
+# - 'functest-store-results'
- job-template:
name: functest-{installer}-{stream}
refspec: ''
branch: master
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-cleanup'
- 'set-functest-env'
- 'functest-all'
- - 'functest-store-results'
+# - 'functest-store-results'
- job-template:
name: functest-vims-{installer}-{stream}
refspec: ''
branch: master
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
builders:
- 'functest-vims'
-- job-template:
- name: 'functest-daily-{stream}'
-
- # Job template for daily builders
- #
- # Required Variables:
- # stream: branch with - in place of / (eg. stable)
- # branch: branch (eg. stable)
-
- varsetabove: '{somevar}'
-
- parameters:
- - project-parameter:
- project: '{project}'
- - functest-parameter:
- gs-pathname: '{gs-pathname}'
-
- scm:
- - git-scm:
- credentials-id: '{ssh-credentials}'
- refspec: ''
- branch: '{stream}'
-
- triggers:
- - 'functest-{stream}'
-
- prebuilders:
- - test-macro
-
- builders:
- - shell:
- !include-raw ../opnfvdocs/docu-build.sh
-
- postbuilders:
- - test-macro
-
- job-template:
name: 'functest-verify-{stream}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
parameters:
- project-parameter:
project: '{project}'
branch-pattern: '**/{branch}'
builders:
- - shell:
- !include-raw ../opnfvdocs/docu-build.sh
-
-- job-template:
- name: 'functest-merge-{stream}'
-
- # builder-merge job to run JJB update
- #
- # This job's purpose is to update all the JJB
-
- parameters:
- - project-parameter:
- project: '{project}'
- - gerrit-parameter:
- branch: '{branch}'
-
- scm:
- - gerrit-trigger-scm:
- credentials-id: '{ssh-credentials}'
- refspec: ''
- choosing-strategy: 'default'
-
- triggers:
- - gerrit:
- trigger-on:
- - change-merged-event
- - comment-added-contains-event:
- comment-contains-value: 'remerge'
- projects:
- - project-compare-type: 'ANT'
- project-pattern: 'functest'
- branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**/{branch}'
-
- builders:
- - shell:
- !include-raw ../opnfvdocs/docu-build.sh
+ - shell: |
+ echo "Nothing to verify!"
########################
# parameter macros
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: intel-pod5
+ parameters:
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/$PROJECT
+ description: "Override GIT_BASE"
+ - string:
+ name: LAB_CONFIG
+ default: "/home/ubuntu/joid_config/admin-openrc"
+ description: "Openstack credentials on the dev lab"
+
- parameter:
name: opnfv-jump-2
parameters:
#!/bin/bash
set +e
if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
- INSTALLER_IP=$(cat instack /var/lib/libvirt/dnsmasq/default.leases \
- |sed 's/.*192/192/g' | sed 's/\ in.*//g')
+ INSTALLER_IP=$(grep instack /var/lib/libvirt/dnsmasq/default.leases \
+ |awk '{print $3}' | head -n 1)
+ 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}"
- labconfig = ""
+ 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
- cmd = "docker run -id -e $envs ${labconfig} 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