2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
56 name: xtesting-build_tag
75 - xtesting-containers: &xtesting-containers
76 name: 'xtesting-containers'
79 container: '{container}'
82 - xtesting-run-containers: &xtesting-run-containers
83 name: 'xtesting-run-containers'
84 <<: *xtesting-containers
86 privileged: '{privileged}'
90 name: xtesting-pull-containers
94 if [ "{repo}" = "_" ]; then
95 image={container}:{tag}
96 elif [ "{port}" = "None" ]; then
97 image={repo}/{container}:{tag}
99 image={repo}:{port}/{container}:{tag}
101 sudo docker pull $image
104 name: xtesting-run-containers
108 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
109 if [ "{repo}" = "_" ]; then
110 image={container}:{tag}
111 elif [ "{port}" = "None" ]; then
112 image={repo}/{container}:{tag}
114 image={repo}:{port}/{container}:{tag}
116 sudo docker run --rm \
117 --privileged={privileged} \
118 --network={network} \
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
145 - xtesting-build-containers: &xtesting-build-containers
146 name: 'xtesting-build-containers'
147 <<: *xtesting-containers
152 name: xtesting-build-containers
156 if [ "{repo}" = "_" ]; then
157 image={container}:{tag}
158 elif [ "{port}" = "None" ]; then
159 image={repo}/{container}:{tag}
161 image={repo}:{port}/{container}:{tag}
163 if [ "{ref_arg}" = "None" ]; then
166 build_arg="--build-arg {ref_arg}={ref}"
174 sudo docker build $build_arg \
175 --pull=false --no-cache --force-rm=true \
182 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
183 refspec: '+refs/changes/*:refs/changes/*'
188 name: 'xtesting-{repo}-{container}-{tag}-pull'
193 - xtesting-pull-containers:
194 <<: *xtesting-containers
197 name: 'xtesting-opnfv-xtesting-pull'
199 container: 'xtesting'
201 - 'xtesting-{repo}-{container}-{tag}-pull'
204 name: 'xtesting-opnfv-xtesting-mts-pull'
206 container: 'xtesting-mts'
217 - 'xtesting-{repo}-{container}-{tag}-pull'
220 name: 'xtesting-{repo}-{container}-{tag}-rmi'
225 - xtesting-remove-images:
226 <<: *xtesting-containers
229 name: 'xtesting-opnfv-xtesting-rmi'
231 container: 'xtesting'
233 - 'xtesting-{repo}-{container}-{tag}-rmi'
236 name: 'xtesting-opnfv-xtesting-mts-rmi'
238 container: 'xtesting-mts'
249 - 'xtesting-{repo}-{container}-{tag}-rmi'
252 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
256 - xtesting-build_tag:
261 - xtesting-run-containers:
262 <<: *xtesting-run-containers
265 name: 'xtesting-opnfv-xtesting'
267 container: 'xtesting'
287 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
290 name: 'xtesting-opnfv-xtesting-mts'
292 container: 'xtesting-mts'
315 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
322 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
323 if [ "{repo}" = "_" ]; then
324 image={container}:{tag}
325 elif [ "{port}" = "None" ]; then
326 image={repo}/{container}:{tag}
328 image={repo}:{port}/{container}:{tag}
330 sudo docker run --rm \
331 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
332 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
333 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
334 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
335 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
336 -e BUILD_TAG=$BUILD_TAG \
337 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
339 -v /home/opnfv/xtesting/.boto:/root/.boto \
343 name: 'xtesting-{tag}-zip'
347 - xtesting-build_tag:
353 <<: *xtesting-containers
356 name: 'xtesting-{tag}-zip'
358 container: 'xtesting'
360 - 'xtesting-{tag}-zip'
363 name: 'xtesting-{tag}-daily'
364 project-type: multijob
370 - xtesting-build_tag:
376 use-build-blocker: true
377 blocking-level: 'NODE'
379 - '^xtesting-{tag}-(daily|check|gate)$'
382 name: remove former images
384 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
386 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
389 name: pull containers
391 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
393 - name: 'xtesting-opnfv-xtesting-mts-{tag}-pull'
396 name: opnfv/xtesting:{tag}
398 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
400 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
402 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
404 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
406 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
408 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
411 name: opnfv/xtesting-mts:{tag}
413 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
416 name: dump all campaign data
418 - name: 'xtesting-{tag}-zip'
422 name: 'xtesting-{repo}-{container}-{tag}-gate'
430 - xtesting-build-containers:
431 <<: *xtesting-build-containers
435 name: 'xtesting-{repo}-{container}-{tag}-check'
445 - xtesting-build-containers:
446 <<: *xtesting-build-containers
450 name: 'xtesting-_-alpine-3.12-rmi'
457 - 'xtesting-{repo}-{container}-{tag}-rmi'
460 name: 'xtesting-_-alpine-3.12-pull'
474 - 'xtesting-{repo}-{container}-{tag}-pull'
477 name: xtesting-opnfv-xtesting-{tag}-build
490 - 'xtesting-{repo}-{container}-{tag}-gate'
491 - 'xtesting-{repo}-{container}-{tag}-check'
494 name: xtesting-opnfv-xtesting-mts-{tag}-build
496 container: xtesting-mts
511 - 'xtesting-{repo}-{container}-{tag}-gate'
512 - 'xtesting-{repo}-{container}-{tag}-check'
515 name: 'xtesting-{tag}-check'
516 project-type: multijob
520 - xtesting-build_tag:
528 use-build-blocker: true
529 blocking-level: 'NODE'
531 - '^xtesting-{tag}-(daily|check|gate)$'
534 name: remove former images
536 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
538 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
541 name: remove dependencies
543 - name: 'xtesting-_-alpine-3.12-rmi'
546 name: pull dependencies
548 - name: 'xtesting-_-alpine-3.12-pull'
553 - name: 'xtesting-opnfv-xtesting-{tag}-check'
556 name: opnfv/xtesting-mts
558 - name: 'xtesting-opnfv-xtesting-mts-{tag}-check'
561 name: opnfv/xtesting:{tag}
563 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
565 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
567 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
569 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
571 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
573 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
576 name: opnfv/xtesting-mts:{tag}
578 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
582 name: xtesting-patchset-created
585 server-name: 'gerrit.opnfv.org'
587 - patchset-created-event
588 - comment-added-contains-event:
589 comment-contains-value: 'recheck'
590 - comment-added-contains-event:
591 comment-contains-value: 'reverify'
593 - project-compare-type: 'ANT'
594 project-pattern: 'functest-xtesting'
596 - branch-compare-type: 'ANT'
597 branch-pattern: '**/{branch}'
605 name: 'xtesting-{tag}-gate'
606 project-type: multijob
608 - xtesting-patchset-created:
613 - xtesting-build_tag:
619 use-build-blocker: true
620 blocking-level: 'NODE'
622 - '^xtesting-{tag}-(daily|check|gate)$'
625 name: remove former images
627 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
629 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
632 name: remove dependencies
634 - name: 'xtesting-_-alpine-3.12-rmi'
637 name: pull dependencies
639 - name: 'xtesting-_-alpine-3.12-pull'
644 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
647 name: opnfv/xtesting-mts
649 - name: 'xtesting-opnfv-xtesting-mts-{tag}-gate'
652 name: opnfv/xtesting:{tag}
654 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
656 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
658 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
660 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
662 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
664 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
667 name: opnfv/xtesting-mts:{tag}
669 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
676 - 'xtesting-{tag}-daily'
679 name: 'xtesting-gate'
689 - 'xtesting-{tag}-check'
690 - 'xtesting-{tag}-gate'
702 regex: ^xtesting-(arm.*-|amd64-)*[a-z]+-daily$
714 regex: ^xtesting-(arm.*-|amd64-)*[a-z]+-gate$