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 - huawei-us-deploy-bare-1:
35 #--------------------------------
37 #--------------------------------
56 #--------------------------------
61 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
63 ################################
65 ################################
67 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
73 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
79 - '{installer}-defaults'
80 - 'yardstick-params-{pod}'
82 name: YARDSTICK_SUITE_NAME
83 default: opnfv_${{NODE_NAME}}_{loop}.yaml
84 description: 'Path to test suite'
88 credentials-id: '{ssh-credentials}'
94 - 'yardstick-fetch-os-creds'
99 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
101 ########################
103 ########################
105 name: yardstick-daily
111 echo "Yardstick: Run benchmark test suites ..."
113 # Pull the latest image
114 docker pull opnfv/yardstick
120 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
121 -e "INSTALLER_IP=${INSTALLER_IP}" \
122 -e "POD_NAME=${NODE_NAME}" \
123 -e "EXTERNAL_NETWORK=${EXTERNAL_NETWORK}" \
124 -e "YARDSTICK_BRANCH=${GERRIT_BRANCH}" \
126 run_tests.sh $YARDSTICK_DB_BACKEND \
127 $YARDSTICK_SUITE_NAME
129 echo "Yardstick: done!"
132 name: yardstick-fetch-os-creds
135 !include-raw ../../utils/fetch_os_creds.sh
138 name: yardstick-cleanup
143 echo "Cleaning up docker containers/images..."
145 # Remove previous running containers if exist
146 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
147 echo "Removing existing opnfv/yardstick containers..."
148 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
149 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
152 # Remove existing images if exist
153 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
154 echo "Docker images to remove:"
155 docker images | head -1 && docker images | grep opnfv/yardstick
156 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
157 for tag in "${image_tags[@]}"; do
158 echo "Removing docker image opnfv/yardstick:$tag..."
159 docker rmi opnfv/yardstick:$tag
162 ########################
164 ########################
166 name: 'yardstick-params-intel-pod5'
169 name: YARDSTICK_DB_BACKEND
171 description: 'Arguments to use in order to choose the backend DB'
174 name: 'yardstick-params-intel-pod6'
177 name: YARDSTICK_DB_BACKEND
179 description: 'Arguments to use in order to choose the backend DB'
182 name: 'yardstick-params-intel-pod8'
185 name: YARDSTICK_DB_BACKEND
187 description: 'Arguments to use in order to choose the backend DB'
190 name: 'yardstick-params-ericsson-pod1'
193 name: YARDSTICK_DB_BACKEND
195 description: 'Arguments to use in order to choose the backend DB'
198 name: 'yardstick-params-ericsson-pod2'
201 name: YARDSTICK_DB_BACKEND
203 description: 'Arguments to use in order to choose the backend DB'
206 name: 'yardstick-params-opnfv-jump-2'
209 name: YARDSTICK_DB_BACKEND
210 default: '-r 213.77.62.197'
211 description: 'Arguments to use in order to choose the backend DB'
214 name: 'yardstick-params-huawei-us-deploy-bare-1'
217 name: YARDSTICK_DB_BACKEND
219 description: 'Arguments to use in order to choose the backend DB'
222 name: 'yardstick-params-zte-build-1'
225 name: YARDSTICK_DB_BACKEND
227 description: 'Arguments to use in order to choose the backend DB'
230 name: 'yardstick-params-orange-pod2'
233 name: YARDSTICK_DB_BACKEND
235 description: 'Arguments to use in order to choose the backend DB'