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 #--------------------------------
35 - huawei-us-deploy-bare-1:
38 #--------------------------------
40 #--------------------------------
62 #--------------------------------
67 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
69 ################################
71 ################################
73 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
79 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
85 - '{installer}-defaults'
86 - 'yardstick-params-{pod}'
88 name: YARDSTICK_SUITE_NAME
89 default: opnfv_${{NODE_NAME}}_{loop}.yaml
90 description: 'Path to test suite'
94 credentials-id: '{ssh-credentials}'
100 - 'yardstick-fetch-os-creds'
105 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
107 ########################
109 ########################
111 name: yardstick-daily
117 echo "Yardstick: Run benchmark test suites ..."
119 # Pull the latest image
120 docker pull opnfv/yardstick
126 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
127 -e "INSTALLER_IP=${INSTALLER_IP}" \
128 -e "POD_NAME=${NODE_NAME}" \
129 -e "EXTERNAL_NETWORK=${EXTERNAL_NETWORK}" \
130 -e "YARDSTICK_BRANCH=${GERRIT_BRANCH}" \
132 run_tests.sh $YARDSTICK_DB_BACKEND \
133 $YARDSTICK_SUITE_NAME
135 echo "Yardstick: done!"
138 name: yardstick-fetch-os-creds
141 !include-raw ../../utils/fetch_os_creds.sh
144 name: yardstick-cleanup
149 echo "Cleaning up docker containers/images..."
151 # Remove previous running containers if exist
152 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
153 echo "Removing existing opnfv/yardstick containers..."
154 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
155 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
158 # Remove existing images if exist
159 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
160 echo "Docker images to remove:"
161 docker images | head -1 && docker images | grep opnfv/yardstick
162 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
163 for tag in "${image_tags[@]}"; do
164 echo "Removing docker image opnfv/yardstick:$tag..."
165 docker rmi opnfv/yardstick:$tag
168 ########################
170 ########################
172 name: 'yardstick-params-intel-pod5'
175 name: YARDSTICK_DB_BACKEND
177 description: 'Arguments to use in order to choose the backend DB'
180 name: 'yardstick-params-intel-pod6'
183 name: YARDSTICK_DB_BACKEND
185 description: 'Arguments to use in order to choose the backend DB'
188 name: 'yardstick-params-intel-pod8'
191 name: YARDSTICK_DB_BACKEND
193 description: 'Arguments to use in order to choose the backend DB'
196 name: 'yardstick-params-ericsson-pod1'
199 name: YARDSTICK_DB_BACKEND
201 description: 'Arguments to use in order to choose the backend DB'
204 name: 'yardstick-params-ericsson-pod2'
207 name: YARDSTICK_DB_BACKEND
209 description: 'Arguments to use in order to choose the backend DB'
211 name: 'yardstick-params-opnfv-jump-1'
214 name: YARDSTICK_DB_BACKEND
215 default: '-r 213.77.62.197/results'
216 description: 'Arguments to use in order to choose the backend DB'
218 name: 'yardstick-params-opnfv-jump-2'
221 name: YARDSTICK_DB_BACKEND
222 default: '-r 213.77.62.197'
223 description: 'Arguments to use in order to choose the backend DB'
226 name: 'yardstick-params-huawei-us-deploy-bare-1'
229 name: YARDSTICK_DB_BACKEND
231 description: 'Arguments to use in order to choose the backend DB'
234 name: 'yardstick-params-zte-build-1'
237 name: YARDSTICK_DB_BACKEND
239 description: 'Arguments to use in order to choose the backend DB'
242 name: 'yardstick-params-orange-pod2'
245 name: YARDSTICK_DB_BACKEND
247 description: 'Arguments to use in order to choose the backend DB'