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}"
168 sudo docker build $build_arg \
169 --pull=false --no-cache --force-rm=true \
176 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
177 refspec: '+refs/changes/*:refs/changes/*'
182 name: 'xtesting-{repo}-{container}-{tag}-pull'
187 - xtesting-pull-containers:
188 <<: *xtesting-containers
191 name: 'xtesting-opnfv-xtesting-pull'
193 container: 'xtesting'
195 - 'xtesting-{repo}-{container}-{tag}-pull'
198 name: 'xtesting-opnfv-xtesting-mts-pull'
200 container: 'xtesting-mts'
211 - 'xtesting-{repo}-{container}-{tag}-pull'
214 name: 'xtesting-{repo}-{container}-{tag}-rmi'
219 - xtesting-remove-images:
220 <<: *xtesting-containers
223 name: 'xtesting-opnfv-xtesting-rmi'
225 container: 'xtesting'
227 - 'xtesting-{repo}-{container}-{tag}-rmi'
230 name: 'xtesting-opnfv-xtesting-mts-rmi'
232 container: 'xtesting-mts'
243 - 'xtesting-{repo}-{container}-{tag}-rmi'
246 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
250 - xtesting-build_tag:
255 - xtesting-run-containers:
256 <<: *xtesting-run-containers
259 name: 'xtesting-opnfv-xtesting'
261 container: 'xtesting'
281 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
284 name: 'xtesting-opnfv-xtesting-mts'
286 container: 'xtesting-mts'
309 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
316 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
317 if [ "{repo}" = "_" ]; then
318 image={container}:{tag}
319 elif [ "{port}" = "None" ]; then
320 image={repo}/{container}:{tag}
322 image={repo}:{port}/{container}:{tag}
324 sudo docker run --rm \
325 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
326 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
327 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
328 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
329 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
330 -e BUILD_TAG=$BUILD_TAG \
331 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
333 -v /home/opnfv/xtesting/.boto:/root/.boto \
337 name: 'xtesting-{tag}-zip'
341 - xtesting-build_tag:
347 <<: *xtesting-containers
350 name: 'xtesting-{tag}-zip'
352 container: 'xtesting'
354 - 'xtesting-{tag}-zip'
357 name: 'xtesting-{tag}-daily'
358 project-type: multijob
364 - xtesting-build_tag:
370 use-build-blocker: true
371 blocking-level: 'NODE'
373 - '^xtesting-{tag}-(daily|check|gate)$'
376 name: remove former images
378 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
380 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
383 name: pull containers
385 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
387 - name: 'xtesting-opnfv-xtesting-mts-{tag}-pull'
390 name: opnfv/xtesting:{tag}
392 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
394 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
396 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
398 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
400 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
402 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
405 name: opnfv/xtesting-mts:{tag}
407 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
410 name: dump all campaign data
412 - name: 'xtesting-{tag}-zip'
416 name: 'xtesting-{repo}-{container}-{tag}-gate'
424 - xtesting-build-containers:
425 <<: *xtesting-build-containers
429 name: 'xtesting-{repo}-{container}-{tag}-check'
439 - xtesting-build-containers:
440 <<: *xtesting-build-containers
444 name: 'xtesting-_-alpine-3.12-rmi'
451 - 'xtesting-{repo}-{container}-{tag}-rmi'
454 name: 'xtesting-_-alpine-3.12-pull'
467 - 'xtesting-{repo}-{container}-{tag}-pull'
470 name: xtesting-opnfv-xtesting-{tag}-build
482 - 'xtesting-{repo}-{container}-{tag}-gate'
483 - 'xtesting-{repo}-{container}-{tag}-check'
486 name: xtesting-opnfv-xtesting-mts-{tag}-build
488 container: xtesting-mts
502 - 'xtesting-{repo}-{container}-{tag}-gate'
503 - 'xtesting-{repo}-{container}-{tag}-check'
506 name: 'xtesting-{tag}-check'
507 project-type: multijob
511 - xtesting-build_tag:
519 use-build-blocker: true
520 blocking-level: 'NODE'
522 - '^xtesting-{tag}-(daily|check|gate)$'
525 name: remove former images
527 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
529 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
532 name: remove dependencies
534 - name: 'xtesting-_-alpine-3.12-rmi'
537 name: pull dependencies
539 - name: 'xtesting-_-alpine-3.12-pull'
544 - name: 'xtesting-opnfv-xtesting-{tag}-check'
547 name: opnfv/xtesting-mts
549 - name: 'xtesting-opnfv-xtesting-mts-{tag}-check'
552 name: opnfv/xtesting:{tag}
554 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
556 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
558 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
560 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
562 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
564 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
567 name: opnfv/xtesting-mts:{tag}
569 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
573 name: xtesting-patchset-created
576 server-name: 'gerrit.opnfv.org'
578 - patchset-created-event
579 - comment-added-contains-event:
580 comment-contains-value: 'recheck'
581 - comment-added-contains-event:
582 comment-contains-value: 'reverify'
584 - project-compare-type: 'ANT'
585 project-pattern: 'functest-xtesting'
587 - branch-compare-type: 'ANT'
588 branch-pattern: '**/{branch}'
596 name: 'xtesting-{tag}-gate'
597 project-type: multijob
599 - xtesting-patchset-created:
604 - xtesting-build_tag:
610 use-build-blocker: true
611 blocking-level: 'NODE'
613 - '^xtesting-{tag}-(daily|check|gate)$'
616 name: remove former images
618 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
620 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
623 name: remove dependencies
625 - name: 'xtesting-_-alpine-3.12-rmi'
628 name: pull dependencies
630 - name: 'xtesting-_-alpine-3.12-pull'
635 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
638 name: opnfv/xtesting-mts
640 - name: 'xtesting-opnfv-xtesting-mts-{tag}-gate'
643 name: opnfv/xtesting:{tag}
645 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
647 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
649 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
651 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
653 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
655 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
658 name: opnfv/xtesting-mts:{tag}
660 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
667 - 'xtesting-{tag}-daily'
670 name: 'xtesting-gate'
679 - 'xtesting-{tag}-check'
680 - 'xtesting-{tag}-gate'
692 regex: ^xtesting-(arm.*-|amd64-)*[a-z]+-daily$
704 regex: ^xtesting-(arm.*-|amd64-)*[a-z]+-gate$