1 ###################################
2 # job configuration for functest
3 ###################################
9 #--------------------------------
11 #--------------------------------
16 brahmaputra: &brahmaputra
18 branch: 'stable/{stream}'
19 gs-pathname: '{stream}'
20 #--------------------------------
21 # POD, INSTALLER, AND BRANCH MAPPING
22 #--------------------------------
24 #--------------------------------
32 #--------------------------------
34 #--------------------------------
44 - huawei-us-deploy-bare-1:
47 #--------------------------------
52 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
54 ################################
56 ################################
58 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
64 name: '$BUILD_NUMBER - SDN: $SDN_CONTROLLER Feature: $OPNFV_FEATURE'
70 - '{installer}-defaults'
71 - 'yardstick-params-{pod}'
73 name: YARDSTICK_SUITE_NAME
74 default: opnfv_${{NODE_NAME}}_{loop}.yaml
75 description: 'Path to test suite'
79 credentials-id: '{ssh-credentials}'
85 - 'yardstick-fetch-os-creds'
90 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
92 ########################
94 ########################
102 echo "Yardstick: Run benchmark test suites ..."
104 # Pull the latest image
105 docker pull opnfv/yardstick
111 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
112 -e "INSTALLER_IP=${INSTALLER_IP}" \
113 -e "POD_NAME=${NODE_NAME}" \
114 -e "EXTERNAL_NETWORK=${EXTERNAL_NETWORK}" \
115 -e "YARDSTICK_BRANCH=${GERRIT_BRANCH}" \
117 run_tests.sh $YARDSTICK_DB_BACKEND \
118 $YARDSTICK_SUITE_NAME
120 echo "Yardstick: done!"
123 name: yardstick-fetch-os-creds
126 !include-raw ../../utils/fetch_os_creds.sh
129 name: yardstick-cleanup
134 echo "Cleaning up docker containers/images..."
136 # Remove previous running containers if exist
137 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
138 echo "Removing existing opnfv/yardstick containers..."
139 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
140 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
143 # Remove existing images if exist
144 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
145 echo "Docker images to remove:"
146 docker images | head -1 && docker images | grep opnfv/yardstick
147 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
148 for tag in "${image_tags[@]}"; do
149 echo "Removing docker image opnfv/yardstick:$tag..."
150 docker rmi opnfv/yardstick:$tag
153 ########################
155 ########################
157 name: 'yardstick-params-intel-pod5'
160 name: YARDSTICK_DB_BACKEND
162 description: 'Arguments to use in order to choose the backend DB'
165 name: 'yardstick-params-intel-pod6'
168 name: YARDSTICK_DB_BACKEND
170 description: 'Arguments to use in order to choose the backend DB'
173 name: 'yardstick-params-ericsson-pod1'
176 name: YARDSTICK_DB_BACKEND
178 description: 'Arguments to use in order to choose the backend DB'
181 name: 'yardstick-params-ericsson-pod2'
184 name: YARDSTICK_DB_BACKEND
186 description: 'Arguments to use in order to choose the backend DB'
189 name: 'yardstick-params-opnfv-jump-2'
192 name: YARDSTICK_DB_BACKEND
193 default: '-r 213.77.62.197'
194 description: 'Arguments to use in order to choose the backend DB'
197 name: 'yardstick-params-huawei-us-deploy-bare-1'
200 name: YARDSTICK_DB_BACKEND
202 description: 'Arguments to use in order to choose the backend DB'