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}'
91 default: 'os-odl_l2-nofeature-ha'
93 name: GERRIT_REFSPEC_DEBUG
95 description: "Gerrit refspec for debug."
99 description: "test suite name."
102 default: '{docker-tag}'
103 description: "docker image tag used for version control"
107 credentials-id: '{ssh-credentials}'
112 - 'bottlenecks-env-cleanup'
113 - 'bottlenecks-fetch-os-creds'
114 - 'bottlenecks-run-suite'
118 recipients: hongbo.tianhongbo@huawei.com matthew.lijun@huawei.com liangqi1@huawei.com sunshine.wang@huawei.com
120 ########################
122 ########################
124 name: bottlenecks-fetch-os-creds
127 !include-raw ../../utils/fetch_os_creds.sh
130 name: bottlenecks-env-cleanup
135 [[ $GERRIT_REFSPEC_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
137 echo "Bottlenecks: docker containers/images cleaning up"
138 if [[ ! -z $(docker ps -a | grep opnfv/bottlenecks) ]]; then
139 echo "removing existing opnfv/bottlenecks containers"
140 docker ps -a | grep opnfv/bottlenecks | awk '{print $1}' | xargs docker rm -f >$redirect
143 if [[ ! -z $(docker images | grep opnfv/bottlenecks) ]]; then
144 echo "Bottlenecks: docker images to remove:"
145 docker images | head -1 && docker images | grep opnfv/bottlenecks
146 image_tags=($(docker images | grep opnfv/bottlenecks | awk '{print $2}'))
147 for tag in "${image_tags[@]}"; do
148 echo "Removing docker image opnfv/bottlenecks:$tag..."
149 docker rmi opnfv/bottlenecks:$tag >$redirect
154 name: bottlenecks-run-suite
159 [[ $GERRIT_REFSPEC_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
161 echo "Bottlenecks: ${SUITE_NAME} running now..."
164 docker pull opnfv/bottlenecks:$DOCKER_TAG >$redirect
166 # run tests by using docker
167 opts="--privileged=true --rm"
168 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
169 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NET=${EXTERNAL_NETWORK} \
170 -e BOTTLENECKS_BRANCH=${BOTTLENECKS_BRANCH} -e GERRIT_REFSPEC_DEBUG=${GERRIT_REFSPEC_DEBUG} \
171 -e BOTTLENECKS_DB_TARGET=${BOTTLENECKS_DB_TARGET} -e PACKAGE_URL=${PACKAGE_URL}"
172 run_testsuite="run_tests.sh -s ${SUITE_NAME}"
173 cmd="sudo docker run ${opts} ${envs} opnfv/bottlenecks ${run_testsuite} >${redirect}"
174 echo "Bottlenecks: docker cmd running: ${cmd}"
182 name: 'bottlenecks-params-intel-pod5'
185 name: BOTTLENECKS_DB_TARGET
186 default: '213.77.62.197'
187 description: 'Arguments to use in order to choose the backend DB'
190 name: 'bottlenecks-params-intel-pod6'
193 name: BOTTLENECKS_DB_TARGET
194 default: '213.77.62.197'
195 description: 'Arguments to use in order to choose the backend DB'
198 name: 'bottlenecks-params-intel-pod8'
201 name: BOTTLENECKS_DB_TARGET
202 default: '213.77.62.197'
203 description: 'Arguments to use in order to choose the backend DB'
206 name: 'bottlenecks-params-ericsson-pod1'
209 name: BOTTLENECKS_DB_TARGET
210 default: '213.77.62.197'
211 description: 'Arguments to use in order to choose the backend DB'
214 name: 'bottlenecks-params-ericsson-pod2'
217 name: BOTTLENECKS_DB_TARGET
218 default: '213.77.62.197'
219 description: 'Arguments to use in order to choose the backend DB'
222 name: 'bottlenecks-params-opnfv-jump-2'
225 name: BOTTLENECKS_DB_TARGET
226 default: '213.77.62.197'
227 description: 'Arguments to use in order to choose the backend DB'
230 name: 'bottlenecks-params-huawei-us-deploy-bare-1'
233 name: BOTTLENECKS_DB_TARGET
234 default: '213.77.62.197'
235 description: 'Arguments to use in order to choose the backend DB'
238 name: 'bottlenecks-params-zte-build-1'
241 name: BOTTLENECKS_DB_TARGET
242 default: '213.77.62.197'
243 description: 'Arguments to use in order to choose the backend DB'
246 name: 'bottlenecks-params-orange-pod2'
249 name: BOTTLENECKS_DB_TARGET
250 default: '213.77.62.197'
251 description: 'Arguments to use in order to choose the backend DB'