2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
32 name: xtesting-build_tag
51 - xtesting-containers: &xtesting-containers
52 name: 'xtesting-containers'
55 container: '{container}'
58 - xtesting-run-containers: &xtesting-run-containers
59 name: 'xtesting-run-containers'
60 <<: *xtesting-containers
63 - xtesting-build-containers: &xtesting-build-containers
64 name: 'xtesting-build-containers'
65 <<: *xtesting-containers
70 name: xtesting-pull-containers
74 if [ "{repo}" = "_" ]; then
75 image={container}:{tag}
76 elif [ "{port}" = "None" ]; then
77 image={repo}/{container}:{tag}
79 image={repo}:{port}/{container}:{tag}
81 sudo docker pull $image
84 name: xtesting-build-containers
88 if [ "{repo}" = "_" ]; then
89 image={container}:{tag}
90 elif [ "{port}" = "None" ]; then
91 image={repo}/{container}:{tag}
93 image={repo}:{port}/{container}:{tag}
95 if [ "{ref_arg}" = "None" ]; then
98 build_arg="--build-arg {ref_arg}={ref}"
101 sudo docker build $build_arg \
102 --pull=false --no-cache --force-rm=true \
106 name: xtesting-run-containers
110 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
111 if [ "{repo}" = "_" ]; then
112 image={container}:{tag}
113 elif [ "{port}" = "None" ]; then
114 image={repo}/{container}:{tag}
116 image={repo}:{port}/{container}:{tag}
118 sudo docker run --rm \
119 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
120 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
121 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
122 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
123 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
124 -e NODE_NAME=$slave \
125 -e BUILD_TAG=$BUILD_TAG \
126 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
128 -v /home/opnfv/xtesting/.boto:/root/.boto \
129 $image run_tests -t {test} -p -r
132 name: xtesting-remove-images
136 if [ "{repo}" = "_" ]; then
137 image={container}:{tag}
138 elif [ "{port}" = "None" ]; then
139 image={repo}/{container}:{tag}
141 image={repo}:{port}/{container}:{tag}
143 sudo docker rmi $image || true
149 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
150 refspec: '+refs/changes/*:refs/changes/*'
155 name: 'xtesting-{repo}-{container}-{tag}-pull'
160 - xtesting-pull-containers:
161 <<: *xtesting-containers
164 name: 'xtesting-opnfv-xtesting-pull'
166 container: 'xtesting'
168 - 'xtesting-{repo}-{container}-{tag}-pull'
171 name: 'xtesting-{repo}-{container}-{tag}-rmi'
176 - xtesting-remove-images:
177 <<: *xtesting-containers
180 name: 'xtesting-opnfv-xtesting-rmi'
182 container: 'xtesting'
184 - 'xtesting-{repo}-{container}-{tag}-rmi'
187 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
191 - xtesting-build_tag:
196 - xtesting-run-containers:
197 <<: *xtesting-run-containers
200 name: 'xtesting-opnfv-xtesting'
202 container: 'xtesting'
216 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
224 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
225 if [ "{repo}" = "_" ]; then
226 image={container}:{tag}
227 elif [ "{port}" = "None" ]; then
228 image={repo}/{container}:{tag}
230 image={repo}:{port}/{container}:{tag}
232 sudo docker run --rm \
233 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
234 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
235 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
236 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
237 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
238 -e BUILD_TAG=$BUILD_TAG \
239 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
241 -v /home/opnfv/xtesting/.boto:/root/.boto \
245 name: 'xtesting-{tag}-zip'
249 - xtesting-build_tag:
255 <<: *xtesting-containers
258 name: 'xtesting-{tag}-zip'
260 container: 'xtesting'
262 - 'xtesting-{tag}-zip'
265 name: 'xtesting-{tag}-daily'
266 project-type: multijob
272 - xtesting-build_tag:
278 use-build-blocker: true
279 blocking-level: 'NODE'
281 - '^xtesting-{tag}-(daily|check|gate)$'
284 name: remove former images
286 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
289 name: pull containers
291 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
294 name: opnfv/xtesting:{tag}
296 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
298 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
300 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
302 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
304 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
306 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
309 name: dump all campaign data
311 - name: 'xtesting-{tag}-zip'
315 name: 'xtesting-{repo}-{container}-{tag}-gate'
323 - xtesting-build-containers:
324 <<: *xtesting-build-containers
328 name: 'xtesting-{repo}-{container}-{tag}-check'
338 - xtesting-build-containers:
339 <<: *xtesting-build-containers
343 name: 'xtesting-_-alpine-3.10-rmi'
350 - 'xtesting-{repo}-{container}-{tag}-rmi'
353 name: 'xtesting-_-alpine-3.10-pull'
360 - 'xtesting-{repo}-{container}-{tag}-pull'
363 name: xtesting-opnfv-xtesting-{tag}-build
369 - 'xtesting-{repo}-{container}-{tag}-gate'
370 - 'xtesting-{repo}-{container}-{tag}-check'
373 name: 'xtesting-{tag}-check'
374 project-type: multijob
378 - xtesting-build_tag:
386 use-build-blocker: true
387 blocking-level: 'NODE'
389 - '^xtesting-{tag}-(daily|check|gate)$'
392 name: remove former images
394 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
397 name: remove dependencies
399 - name: 'xtesting-_-alpine-3.10-rmi'
402 name: pull dependencies
404 - name: 'xtesting-_-alpine-3.10-pull'
409 - name: 'xtesting-opnfv-xtesting-{tag}-check'
412 name: opnfv/xtesting:{tag}
414 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
416 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
418 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
420 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
422 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
424 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
428 name: xtesting-patchset-created
431 server-name: 'gerrit.opnfv.org'
433 - patchset-created-event
434 - comment-added-contains-event:
435 comment-contains-value: 'recheck'
436 - comment-added-contains-event:
437 comment-contains-value: 'reverify'
439 - project-compare-type: 'ANT'
440 project-pattern: 'functest-xtesting'
442 - branch-compare-type: 'ANT'
443 branch-pattern: '**/{branch}'
451 name: 'xtesting-{tag}-gate'
452 project-type: multijob
454 - xtesting-patchset-created:
459 - xtesting-build_tag:
465 use-build-blocker: true
466 blocking-level: 'NODE'
468 - '^xtesting-{tag}-(daily|check|gate)$'
471 name: remove former images
473 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
476 name: remove dependencies
478 - name: 'xtesting-_-alpine-3.10-rmi'
481 name: pull dependencies
483 - name: 'xtesting-_-alpine-3.10-pull'
488 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
491 name: opnfv/xtesting:{tag}
493 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
495 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
497 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
499 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
501 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
503 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
510 - 'xtesting-{tag}-daily'
511 - 'xtesting-{tag}-check'
512 - 'xtesting-{tag}-gate'
524 regex: ^xtesting-[a-z]+-(daily|check|gate)$