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: "/home/opnfv/bottlenecks"
92 description: "Directory where the repository is cloned"
95 default: 'os-odl_l2-nofeature-ha'
97 name: GERRIT_REFSPEC_DEBUG
99 description: "Gerrit refspec for debug."
103 description: "test suite name."
106 default: '{docker-tag}'
107 description: "docker image tag used for version control"
111 credentials-id: '{ssh-credentials}'
116 - 'bottlenecks-env-cleanup'
117 - 'bottlenecks-fetch-os-creds'
118 - 'bottlenecks-run-suite'
122 recipients: hongbo.tianhongbo@huawei.com matthew.lijun@huawei.com liangqi1@huawei.com sunshine.wang@huawei.com
124 ########################
126 ########################
128 name: bottlenecks-fetch-os-creds
131 !include-raw ../../utils/fetch_os_creds.sh
134 name: bottlenecks-env-cleanup
139 [[ $GERRIT_REFSPEC_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
141 echo "Bottlenecks: docker containers/images cleaning up"
142 if [[ ! -z $(docker ps -a | grep opnfv/bottlenecks) ]]; then
143 echo "removing existing opnfv/bottlenecks containers"
144 docker ps -a | grep opnfv/bottlenecks | awk '{print $1}' | xargs docker rm -f >$redirect
147 if [[ ! -z $(docker images | grep opnfv/bottlenecks) ]]; then
148 echo "Bottlenecks: docker images to remove:"
149 docker images | head -1 && docker images | grep opnfv/bottlenecks
150 image_tags=($(docker images | grep opnfv/bottlenecks | awk '{print $2}'))
151 for tag in "${image_tags[@]}"; do
152 echo "Removing docker image opnfv/bottlenecks:$tag..."
153 docker rmi opnfv/bottlenecks:$tag >$redirect
158 name: bottlenecks-run-suite
163 [[ $GERRIT_REFSPEC_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
165 echo "Bottlenecks: ${SUITE_NAME} running now..."
168 docker pull opnfv/bottlenecks:$DOCKER_TAG >$redirect
170 # run tests by using docker
171 opts="--privileged=true --rm"
172 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
173 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NET=${EXTERNAL_NETWORK} \
174 -e BOTTLENECKS_BRANCH=${BOTTLENECKS_BRANCH} -e GERRIT_REFSPEC_DEBUG=${GERRIT_REFSPEC_DEBUG} \
175 -e BOTTLENECKS_DB_TARGET=${BOTTLENECKS_DB_TARGET} -e PACKAGE_URL=${PACKAGE_URL}"
176 run_testsuite="${REPO_DIR}/run_tests.sh -s ${SUITE_NAME}"
177 cmd="sudo docker run ${opts} ${envs} opnfv/bottlenecks ${run_testsuite}"
178 echo "Bottlenecks: docker cmd running: ${cmd}"
186 name: 'bottlenecks-params-intel-pod5'
189 name: BOTTLENECKS_DB_TARGET
190 default: '213.77.62.197'
191 description: 'Arguments to use in order to choose the backend DB'
194 name: 'bottlenecks-params-intel-pod6'
197 name: BOTTLENECKS_DB_TARGET
198 default: '213.77.62.197'
199 description: 'Arguments to use in order to choose the backend DB'
202 name: 'bottlenecks-params-intel-pod8'
205 name: BOTTLENECKS_DB_TARGET
206 default: '213.77.62.197'
207 description: 'Arguments to use in order to choose the backend DB'
210 name: 'bottlenecks-params-ericsson-pod1'
213 name: BOTTLENECKS_DB_TARGET
214 default: '213.77.62.197'
215 description: 'Arguments to use in order to choose the backend DB'
218 name: 'bottlenecks-params-ericsson-pod2'
221 name: BOTTLENECKS_DB_TARGET
222 default: '213.77.62.197'
223 description: 'Arguments to use in order to choose the backend DB'
226 name: 'bottlenecks-params-opnfv-jump-2'
229 name: BOTTLENECKS_DB_TARGET
230 default: '213.77.62.197'
231 description: 'Arguments to use in order to choose the backend DB'
234 name: 'bottlenecks-params-huawei-us-deploy-bare-1'
237 name: BOTTLENECKS_DB_TARGET
238 default: '213.77.62.197'
239 description: 'Arguments to use in order to choose the backend DB'
242 name: 'bottlenecks-params-zte-build-1'
245 name: BOTTLENECKS_DB_TARGET
246 default: '213.77.62.197'
247 description: 'Arguments to use in order to choose the backend DB'
250 name: 'bottlenecks-params-orange-pod2'
253 name: BOTTLENECKS_DB_TARGET
254 default: '213.77.62.197'
255 description: 'Arguments to use in order to choose the backend DB'