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 #--------------------------------
25 # everything runs against master branch
26 #--------------------------------
37 - huawei-us-deploy-bare-1:
40 #--------------------------------
43 #--------------------------------
45 #--------------------------------
46 # - huawei-us-deploy-bare-1:
58 #--------------------------------
60 #--------------------------------
67 #--------------------------------
72 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
74 ################################
76 ################################
78 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
84 name: '$BUILD_NUMBER - SDN: $SDN_CONTROLLER Feature: $OPNFV_FEATURE'
90 - '{installer}-defaults'
91 - 'yardstick-params-{pod}'
93 name: YARDSTICK_SUITE_NAME
94 default: opnfv_${{NODE_NAME}}_{loop}.yaml
95 description: 'Path to test suite'
99 credentials-id: '{ssh-credentials}'
104 - 'yardstick-cleanup'
105 - 'yardstick-fetch-os-creds'
110 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
112 ########################
114 ########################
116 name: yardstick-daily
122 echo "Yardstick: Run benchmark test suites ..."
124 # Pull the latest image
125 docker pull opnfv/yardstick
131 -e "INSTALLER_TYPE=${INSTALLER_TYPE}" \
132 -e "INSTALLER_IP=${INSTALLER_IP}" \
133 -e "POD_NAME=${NODE_NAME}" \
134 -e "EXTERNAL_NETWORK=net04_ext" \
137 $YARDSTICK_SUITE_NAME
139 echo "Yardstick: done!"
142 name: yardstick-fetch-os-creds
145 !include-raw ../../utils/fetch_os_creds.sh
148 name: yardstick-cleanup
153 echo "Cleaning up docker containers/images..."
155 # Remove previous running containers if exist
156 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
157 echo "Removing existing opnfv/yardstick containers..."
158 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
159 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
162 # Remove existing images if exist
163 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
164 echo "Docker images to remove:"
165 docker images | head -1 && docker images | grep opnfv/yardstick
166 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
167 for tag in "${image_tags[@]}"; do
168 echo "Removing docker image opnfv/yardstick:$tag..."
169 docker rmi opnfv/yardstick:$tag
172 ########################
174 ########################
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
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'