2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
50 name: xtesting-build_tag
69 - xtesting-containers: &xtesting-containers
70 name: 'xtesting-containers'
73 container: '{container}'
76 - xtesting-run-containers: &xtesting-run-containers
77 name: 'xtesting-run-containers'
78 <<: *xtesting-containers
80 privileged: '{privileged}'
84 name: xtesting-pull-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 sudo docker pull $image
98 name: xtesting-run-containers
102 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
103 if [ "{repo}" = "_" ]; then
104 image={container}:{tag}
105 elif [ "{port}" = "None" ]; then
106 image={repo}/{container}:{tag}
108 image={repo}:{port}/{container}:{tag}
110 sudo docker run --rm \
111 --privileged={privileged} \
112 --network={network} \
113 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
114 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
115 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
116 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
117 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
118 -e NODE_NAME=$slave \
119 -e BUILD_TAG=$BUILD_TAG \
120 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
122 -v /home/opnfv/xtesting/.boto:/root/.boto \
123 $image run_tests -t {test} -p -r
126 name: xtesting-remove-images
130 if [ "{repo}" = "_" ]; then
131 image={container}:{tag}
132 elif [ "{port}" = "None" ]; then
133 image={repo}/{container}:{tag}
135 image={repo}:{port}/{container}:{tag}
137 sudo docker rmi $image || true
139 - xtesting-build-containers: &xtesting-build-containers
140 name: 'xtesting-build-containers'
141 <<: *xtesting-containers
146 name: xtesting-build-containers
150 if [ "{repo}" = "_" ]; then
151 image={container}:{tag}
152 elif [ "{port}" = "None" ]; then
153 image={repo}/{container}:{tag}
155 image={repo}:{port}/{container}:{tag}
157 if [ "{ref_arg}" = "None" ]; then
160 build_arg="--build-arg {ref_arg}={ref}"
163 sudo docker build $build_arg \
164 --pull=false --no-cache --force-rm=true \
171 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
172 refspec: '+refs/changes/*:refs/changes/*'
177 name: 'xtesting-{repo}-{container}-{tag}-pull'
182 - xtesting-pull-containers:
183 <<: *xtesting-containers
186 name: 'xtesting-opnfv-xtesting-pull'
188 container: 'xtesting'
190 - 'xtesting-{repo}-{container}-{tag}-pull'
193 name: 'xtesting-opnfv-xtesting-mts-pull'
195 container: 'xtesting-mts'
206 - 'xtesting-{repo}-{container}-{tag}-pull'
209 name: 'xtesting-{repo}-{container}-{tag}-rmi'
214 - xtesting-remove-images:
215 <<: *xtesting-containers
218 name: 'xtesting-opnfv-xtesting-rmi'
220 container: 'xtesting'
222 - 'xtesting-{repo}-{container}-{tag}-rmi'
225 name: 'xtesting-opnfv-xtesting-mts-rmi'
227 container: 'xtesting-mts'
238 - 'xtesting-{repo}-{container}-{tag}-rmi'
241 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
245 - xtesting-build_tag:
250 - xtesting-run-containers:
251 <<: *xtesting-run-containers
254 name: 'xtesting-opnfv-xtesting'
256 container: 'xtesting'
276 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
279 name: 'xtesting-opnfv-xtesting-mts'
281 container: 'xtesting-mts'
304 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
311 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
312 if [ "{repo}" = "_" ]; then
313 image={container}:{tag}
314 elif [ "{port}" = "None" ]; then
315 image={repo}/{container}:{tag}
317 image={repo}:{port}/{container}:{tag}
319 sudo docker run --rm \
320 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
321 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
322 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
323 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
324 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
325 -e BUILD_TAG=$BUILD_TAG \
326 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
328 -v /home/opnfv/xtesting/.boto:/root/.boto \
332 name: 'xtesting-{tag}-zip'
336 - xtesting-build_tag:
342 <<: *xtesting-containers
345 name: 'xtesting-{tag}-zip'
347 container: 'xtesting'
349 - 'xtesting-{tag}-zip'
352 name: 'xtesting-{tag}-daily'
353 project-type: multijob
359 - xtesting-build_tag:
365 use-build-blocker: true
366 blocking-level: 'NODE'
368 - '^xtesting-{tag}-(daily|check|gate)$'
371 name: remove former images
373 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
375 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
378 name: pull containers
380 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
382 - name: 'xtesting-opnfv-xtesting-mts-{tag}-pull'
385 name: opnfv/xtesting:{tag}
387 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
389 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
391 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
393 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
395 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
397 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
400 name: opnfv/xtesting-mts:{tag}
402 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
405 name: dump all campaign data
407 - name: 'xtesting-{tag}-zip'
411 name: 'xtesting-{repo}-{container}-{tag}-gate'
419 - xtesting-build-containers:
420 <<: *xtesting-build-containers
424 name: 'xtesting-{repo}-{container}-{tag}-check'
434 - xtesting-build-containers:
435 <<: *xtesting-build-containers
439 name: 'xtesting-_-alpine-3.12-rmi'
446 - 'xtesting-{repo}-{container}-{tag}-rmi'
449 name: 'xtesting-_-alpine-3.12-pull'
462 - 'xtesting-{repo}-{container}-{tag}-pull'
465 name: xtesting-opnfv-xtesting-{tag}-build
477 - 'xtesting-{repo}-{container}-{tag}-gate'
478 - 'xtesting-{repo}-{container}-{tag}-check'
481 name: xtesting-opnfv-xtesting-mts-{tag}-build
483 container: xtesting-mts
493 - 'xtesting-{repo}-{container}-{tag}-gate'
494 - 'xtesting-{repo}-{container}-{tag}-check'
497 name: 'xtesting-{tag}-check'
498 project-type: multijob
502 - xtesting-build_tag:
510 use-build-blocker: true
511 blocking-level: 'NODE'
513 - '^xtesting-{tag}-(daily|check|gate)$'
516 name: remove former images
518 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
520 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
523 name: remove dependencies
525 - name: 'xtesting-_-alpine-3.12-rmi'
528 name: pull dependencies
530 - name: 'xtesting-_-alpine-3.12-pull'
535 - name: 'xtesting-opnfv-xtesting-{tag}-check'
538 name: opnfv/xtesting-mts
540 - name: 'xtesting-opnfv-xtesting-mts-{tag}-check'
543 name: opnfv/xtesting:{tag}
545 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
547 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
549 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
551 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
553 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
555 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
558 name: opnfv/xtesting-mts:{tag}
560 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
564 name: xtesting-patchset-created
567 server-name: 'gerrit.opnfv.org'
569 - patchset-created-event
570 - comment-added-contains-event:
571 comment-contains-value: 'recheck'
572 - comment-added-contains-event:
573 comment-contains-value: 'reverify'
575 - project-compare-type: 'ANT'
576 project-pattern: 'functest-xtesting'
578 - branch-compare-type: 'ANT'
579 branch-pattern: '**/{branch}'
587 name: 'xtesting-{tag}-gate'
588 project-type: multijob
590 - xtesting-patchset-created:
595 - xtesting-build_tag:
601 use-build-blocker: true
602 blocking-level: 'NODE'
604 - '^xtesting-{tag}-(daily|check|gate)$'
607 name: remove former images
609 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
611 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
614 name: remove dependencies
616 - name: 'xtesting-_-alpine-3.12-rmi'
619 name: pull dependencies
621 - name: 'xtesting-_-alpine-3.12-pull'
626 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
629 name: opnfv/xtesting-mts
631 - name: 'xtesting-opnfv-xtesting-mts-{tag}-gate'
634 name: opnfv/xtesting:{tag}
636 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
638 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
640 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
642 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
644 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
646 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
649 name: opnfv/xtesting-mts:{tag}
651 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
658 - 'xtesting-{tag}-daily'
661 name: 'xtesting-gate'
670 - 'xtesting-{tag}-check'
671 - 'xtesting-{tag}-gate'
683 regex: ^xtesting-(arm.*-|amd64-)*[a-z]+-daily$
695 regex: ^xtesting-(arm.*-|amd64-)*[a-z]+-gate$