1 ####################################
2 # job configuration for bottlenecks
3 ####################################
5 name: bottlenecks-ci-jobs
9 #--------------------------------
11 #--------------------------------
15 #This is used for common project file storage
17 #This is used for different test suite dependent packages storage
18 gs-packagepath: '/{suite}'
19 #docker tag used for version control
21 brahmaputra: &brahmaputra
23 branch: 'stable/{stream}'
24 gs-pathname: '/{stream}'
25 gs-packagepath: '/{stream}/{suite}'
26 docker-tag: 'brahmaputra'
27 #--------------------------------
28 # POD, INSTALLER, AND BRANCH MAPPING
29 #--------------------------------
31 #--------------------------------
39 - huawei-us-deploy-bare-1:
42 #--------------------------------
44 #--------------------------------
63 #--------------------------------
69 - 'bottlenecks-{installer}-{suite}-{pod}-daily-{stream}'
71 ################################
73 ################################
75 name: 'bottlenecks-{installer}-{suite}-{pod}-daily-{stream}'
81 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
87 - '{installer}-defaults'
88 - 'bottlenecks-params-{pod}'
90 name: GERRIT_REFSPEC_DEBUG
92 description: "Gerrit refspec for debug."
96 description: "test suite name."
99 default: '{docker-tag}'
100 description: "docker image tag used for version control"
104 credentials-id: '{ssh-credentials}'
109 - 'bottlenecks-env-cleanup'
110 - 'bottlenecks-fetch-os-creds'
111 - 'bottlenecks-run-suite'
115 recipients: hongbo.tianhongbo@huawei.com matthew.lijun@huawei.com liangqi1@huawei.com sunshine.wang@huawei.com
117 ########################
119 ########################
121 name: bottlenecks-fetch-os-creds
124 !include-raw ../../utils/fetch_os_creds.sh
127 name: bottlenecks-env-cleanup
132 [[ $GERRIT_REFSPEC_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
134 echo "Bottlenecks: docker containers/images cleaning up"
135 if [[ ! -z $(docker ps -a | grep opnfv/bottlenecks) ]]; then
136 echo "removing existing opnfv/bottlenecks containers"
137 docker ps -a | grep opnfv/bottlenecks | awk '{print $1}' | xargs docker rm -f >$redirect
140 if [[ ! -z $(docker images | grep opnfv/bottlenecks) ]]; then
141 echo "Bottlenecks: docker images to remove:"
142 docker images | head -1 && docker images | grep opnfv/bottlenecks
143 image_tags=($(docker images | grep opnfv/bottlenecks | awk '{print $2}'))
144 for tag in "${image_tags[@]}"; do
145 echo "Removing docker image opnfv/bottlenecks:$tag..."
146 docker rmi opnfv/bottlenecks:$tag >$redirect
151 name: bottlenecks-run-suite
156 [[ $GERRIT_REFSPEC_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
158 echo "Bottlenecks: ${SUITE_NAME} running now..."
161 docker pull opnfv/bottlenecks:$DOCKER_TAG >$redirect
163 # run tests by using docker
164 opts="--privileged=true --rm"
165 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
166 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NET=${EXTERNAL_NETWORK} \
167 -e BOTTLENECKS_BRANCH=${BOTTLENECKS_BRANCH} -e GERRIT_REFSPEC_DEBUG=${GERRIT_REFSPEC_DEBUG} \
168 -e BOTTLENECKS_DB_TARGET=${BOTTLENECKS_DB_TARGET} -e PACKAGE_URL=${PACKAGE_URL}"
169 run_testsuite="run_tests.sh -s ${SUITE_NAME}"
170 cmd="sudo docker run ${opts} ${envs} opnfv/bottlenecks ${run_testsuite} >${redirect}"
171 echo "Bottlenecks: docker cmd running: ${cmd}"
179 name: 'bottlenecks-params-intel-pod5'
182 name: BOTTLENECKS_DB_TARGET
183 default: '213.77.62.197'
184 description: 'Arguments to use in order to choose the backend DB'
187 name: 'bottlenecks-params-intel-pod6'
190 name: BOTTLENECKS_DB_TARGET
191 default: '213.77.62.197'
192 description: 'Arguments to use in order to choose the backend DB'
195 name: 'bottlenecks-params-intel-pod8'
198 name: BOTTLENECKS_DB_TARGET
199 default: '213.77.62.197'
200 description: 'Arguments to use in order to choose the backend DB'
203 name: 'bottlenecks-params-ericsson-pod1'
206 name: BOTTLENECKS_DB_TARGET
207 default: '213.77.62.197'
208 description: 'Arguments to use in order to choose the backend DB'
211 name: 'bottlenecks-params-ericsson-pod2'
214 name: BOTTLENECKS_DB_TARGET
215 default: '213.77.62.197'
216 description: 'Arguments to use in order to choose the backend DB'
219 name: 'bottlenecks-params-opnfv-jump-2'
222 name: BOTTLENECKS_DB_TARGET
223 default: '213.77.62.197'
224 description: 'Arguments to use in order to choose the backend DB'
227 name: 'bottlenecks-params-huawei-us-deploy-bare-1'
230 name: BOTTLENECKS_DB_TARGET
231 default: '213.77.62.197'
232 description: 'Arguments to use in order to choose the backend DB'
235 name: 'bottlenecks-params-zte-build-1'
238 name: BOTTLENECKS_DB_TARGET
239 default: '213.77.62.197'
240 description: 'Arguments to use in order to choose the backend DB'
243 name: 'bottlenecks-params-orange-pod2'
246 name: BOTTLENECKS_DB_TARGET
247 default: '213.77.62.197'
248 description: 'Arguments to use in order to choose the backend DB'