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:
50 #--------------------------------
55 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
57 ################################
59 ################################
61 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
67 name: '$BUILD_NUMBER - SDN: $SDN_CONTROLLER Scenario: $DEPLOY_SCENARIO'
73 - '{installer}-defaults'
74 - 'yardstick-params-{pod}'
76 name: YARDSTICK_SUITE_NAME
77 default: opnfv_${{NODE_NAME}}_{loop}.yaml
78 description: 'Path to test suite'
82 credentials-id: '{ssh-credentials}'
88 - 'yardstick-fetch-os-creds'
93 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
95 ########################
97 ########################
105 echo "Yardstick: Run benchmark test suites ..."
107 # Pull the latest image
108 docker pull opnfv/yardstick
114 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
115 -e "INSTALLER_IP=${INSTALLER_IP}" \
116 -e "POD_NAME=${NODE_NAME}" \
117 -e "EXTERNAL_NETWORK=${EXTERNAL_NETWORK}" \
118 -e "YARDSTICK_BRANCH=${GERRIT_BRANCH}" \
120 run_tests.sh $YARDSTICK_DB_BACKEND \
121 $YARDSTICK_SUITE_NAME
123 echo "Yardstick: done!"
126 name: yardstick-fetch-os-creds
129 !include-raw ../../utils/fetch_os_creds.sh
132 name: yardstick-cleanup
137 echo "Cleaning up docker containers/images..."
139 # Remove previous running containers if exist
140 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
141 echo "Removing existing opnfv/yardstick containers..."
142 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
143 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
146 # Remove existing images if exist
147 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
148 echo "Docker images to remove:"
149 docker images | head -1 && docker images | grep opnfv/yardstick
150 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
151 for tag in "${image_tags[@]}"; do
152 echo "Removing docker image opnfv/yardstick:$tag..."
153 docker rmi opnfv/yardstick:$tag
156 ########################
158 ########################
160 name: 'yardstick-params-intel-pod5'
163 name: YARDSTICK_DB_BACKEND
165 description: 'Arguments to use in order to choose the backend DB'
168 name: 'yardstick-params-intel-pod6'
171 name: YARDSTICK_DB_BACKEND
173 description: 'Arguments to use in order to choose the backend DB'
176 name: 'yardstick-params-ericsson-pod1'
179 name: YARDSTICK_DB_BACKEND
181 description: 'Arguments to use in order to choose the backend DB'
184 name: 'yardstick-params-ericsson-pod2'
187 name: YARDSTICK_DB_BACKEND
189 description: 'Arguments to use in order to choose the backend DB'
192 name: 'yardstick-params-opnfv-jump-2'
195 name: YARDSTICK_DB_BACKEND
196 default: '-r 213.77.62.197'
197 description: 'Arguments to use in order to choose the backend DB'
200 name: 'yardstick-params-huawei-us-deploy-bare-1'
203 name: YARDSTICK_DB_BACKEND
205 description: 'Arguments to use in order to choose the backend DB'
208 name: 'yardstick-params-zte-build-1'
211 name: YARDSTICK_DB_BACKEND
213 description: 'Arguments to use in order to choose the backend DB'