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:
53 #--------------------------------
58 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
60 ################################
62 ################################
64 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
70 name: '$BUILD_NUMBER - SDN: $SDN_CONTROLLER Scenario: $DEPLOY_SCENARIO'
76 - '{installer}-defaults'
77 - 'yardstick-params-{pod}'
79 name: YARDSTICK_SUITE_NAME
80 default: opnfv_${{NODE_NAME}}_{loop}.yaml
81 description: 'Path to test suite'
85 credentials-id: '{ssh-credentials}'
91 - 'yardstick-fetch-os-creds'
96 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
98 ########################
100 ########################
102 name: yardstick-daily
108 echo "Yardstick: Run benchmark test suites ..."
110 # Pull the latest image
111 docker pull opnfv/yardstick
117 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
118 -e "INSTALLER_IP=${INSTALLER_IP}" \
119 -e "POD_NAME=${NODE_NAME}" \
120 -e "EXTERNAL_NETWORK=${EXTERNAL_NETWORK}" \
121 -e "YARDSTICK_BRANCH=${GERRIT_BRANCH}" \
123 run_tests.sh $YARDSTICK_DB_BACKEND \
124 $YARDSTICK_SUITE_NAME
126 echo "Yardstick: done!"
129 name: yardstick-fetch-os-creds
132 !include-raw ../../utils/fetch_os_creds.sh
135 name: yardstick-cleanup
140 echo "Cleaning up docker containers/images..."
142 # Remove previous running containers if exist
143 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
144 echo "Removing existing opnfv/yardstick containers..."
145 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
146 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
149 # Remove existing images if exist
150 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
151 echo "Docker images to remove:"
152 docker images | head -1 && docker images | grep opnfv/yardstick
153 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
154 for tag in "${image_tags[@]}"; do
155 echo "Removing docker image opnfv/yardstick:$tag..."
156 docker rmi opnfv/yardstick:$tag
159 ########################
161 ########################
163 name: 'yardstick-params-intel-pod5'
166 name: YARDSTICK_DB_BACKEND
168 description: 'Arguments to use in order to choose the backend DB'
171 name: 'yardstick-params-intel-pod6'
174 name: YARDSTICK_DB_BACKEND
176 description: 'Arguments to use in order to choose the backend DB'
179 name: 'yardstick-params-ericsson-pod1'
182 name: YARDSTICK_DB_BACKEND
184 description: 'Arguments to use in order to choose the backend DB'
187 name: 'yardstick-params-ericsson-pod2'
190 name: YARDSTICK_DB_BACKEND
192 description: 'Arguments to use in order to choose the backend DB'
195 name: 'yardstick-params-opnfv-jump-2'
198 name: YARDSTICK_DB_BACKEND
199 default: '-r 213.77.62.197'
200 description: 'Arguments to use in order to choose the backend DB'
203 name: 'yardstick-params-huawei-us-deploy-bare-1'
206 name: YARDSTICK_DB_BACKEND
208 description: 'Arguments to use in order to choose the backend DB'
211 name: 'yardstick-params-zte-build-1'
214 name: YARDSTICK_DB_BACKEND
216 description: 'Arguments to use in order to choose the backend DB'
219 name: 'yardstick-params-orange-pod2'
222 name: YARDSTICK_DB_BACKEND
224 description: 'Arguments to use in order to choose the backend DB'