2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
38 name: xtesting-build_tag
57 - xtesting-containers: &xtesting-containers
58 name: 'xtesting-containers'
61 container: '{container}'
64 - xtesting-run-containers: &xtesting-run-containers
65 name: 'xtesting-run-containers'
66 <<: *xtesting-containers
68 privileged: '{privileged}'
72 name: xtesting-pull-containers
76 if [ "{repo}" = "_" ]; then
77 image={container}:{tag}
78 elif [ "{port}" = "None" ]; then
79 image={repo}/{container}:{tag}
81 image={repo}:{port}/{container}:{tag}
83 sudo docker pull $image
86 name: xtesting-run-containers
90 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
91 if [ "{repo}" = "_" ]; then
92 image={container}:{tag}
93 elif [ "{port}" = "None" ]; then
94 image={repo}/{container}:{tag}
96 image={repo}:{port}/{container}:{tag}
98 sudo docker run --rm \
99 --privileged={privileged} \
100 --network={network} \
101 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
102 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
103 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
104 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
105 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
106 -e NODE_NAME=$slave \
107 -e BUILD_TAG=$BUILD_TAG \
108 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
110 -v /home/opnfv/xtesting/.boto:/root/.boto \
111 $image run_tests -t {test} -p -r
114 name: xtesting-remove-images
118 if [ "{repo}" = "_" ]; then
119 image={container}:{tag}
120 elif [ "{port}" = "None" ]; then
121 image={repo}/{container}:{tag}
123 image={repo}:{port}/{container}:{tag}
125 sudo docker rmi $image || true
127 - xtesting-build-containers: &xtesting-build-containers
128 name: 'xtesting-build-containers'
129 <<: *xtesting-containers
134 name: xtesting-build-containers
138 if [ "{repo}" = "_" ]; then
139 image={container}:{tag}
140 elif [ "{port}" = "None" ]; then
141 image={repo}/{container}:{tag}
143 image={repo}:{port}/{container}:{tag}
145 if [ "{ref_arg}" = "None" ]; then
148 build_arg="--build-arg {ref_arg}={ref}"
156 sudo docker build $build_arg \
157 --pull=false --no-cache --force-rm=true \
164 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
165 refspec: '+refs/changes/*:refs/changes/*'
170 name: 'xtesting-{repo}-{container}-{tag}-pull'
175 - xtesting-pull-containers:
176 <<: *xtesting-containers
179 name: 'xtesting-opnfv-xtesting-pull'
181 container: 'xtesting'
183 - 'xtesting-{repo}-{container}-{tag}-pull'
186 name: 'xtesting-opnfv-xtesting-mts-pull'
188 container: 'xtesting-mts'
195 - 'xtesting-{repo}-{container}-{tag}-pull'
198 name: 'xtesting-{repo}-{container}-{tag}-rmi'
203 - xtesting-remove-images:
204 <<: *xtesting-containers
207 name: 'xtesting-opnfv-xtesting-rmi'
209 container: 'xtesting'
211 - 'xtesting-{repo}-{container}-{tag}-rmi'
214 name: 'xtesting-opnfv-xtesting-mts-rmi'
216 container: 'xtesting-mts'
223 - 'xtesting-{repo}-{container}-{tag}-rmi'
226 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
230 - xtesting-build_tag:
235 - xtesting-run-containers:
236 <<: *xtesting-run-containers
239 name: 'xtesting-opnfv-xtesting'
241 container: 'xtesting'
257 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
260 name: 'xtesting-opnfv-xtesting-mts'
262 container: 'xtesting-mts'
277 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
284 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
285 if [ "{repo}" = "_" ]; then
286 image={container}:{tag}
287 elif [ "{port}" = "None" ]; then
288 image={repo}/{container}:{tag}
290 image={repo}:{port}/{container}:{tag}
292 sudo docker run --rm \
293 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
294 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
295 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
296 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
297 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
298 -e BUILD_TAG=$BUILD_TAG \
299 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
301 -v /home/opnfv/xtesting/.boto:/root/.boto \
305 name: 'xtesting-{tag}-zip'
309 - xtesting-build_tag:
315 <<: *xtesting-containers
318 name: 'xtesting-{tag}-zip'
320 container: 'xtesting'
322 - 'xtesting-{tag}-zip'
325 name: 'xtesting-{tag}-daily'
326 project-type: multijob
332 - xtesting-build_tag:
338 use-build-blocker: true
339 blocking-level: 'NODE'
341 - '^xtesting-{tag}-(daily|check|gate)$'
344 name: remove former images
346 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
348 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
351 name: pull containers
353 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
355 - name: 'xtesting-opnfv-xtesting-mts-{tag}-pull'
358 name: opnfv/xtesting:{tag}
360 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
362 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
364 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
366 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
368 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
370 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
373 name: opnfv/xtesting-mts:{tag}
375 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
378 name: dump all campaign data
380 - name: 'xtesting-{tag}-zip'
384 name: 'xtesting-{repo}-{container}-{tag}-gate'
392 - xtesting-build-containers:
393 <<: *xtesting-build-containers
397 name: 'xtesting-{repo}-{container}-{tag}-check'
407 - xtesting-build-containers:
408 <<: *xtesting-build-containers
412 name: 'xtesting-_-alpine-3.12-rmi'
419 - 'xtesting-{repo}-{container}-{tag}-rmi'
422 name: 'xtesting-_-alpine-3.12-pull'
429 - 'xtesting-{repo}-{container}-{tag}-pull'
432 name: xtesting-opnfv-xtesting-{tag}-build
438 - 'xtesting-{repo}-{container}-{tag}-gate'
439 - 'xtesting-{repo}-{container}-{tag}-check'
442 name: xtesting-opnfv-xtesting-mts-{tag}-build
444 container: xtesting-mts
453 - 'xtesting-{repo}-{container}-{tag}-gate'
454 - 'xtesting-{repo}-{container}-{tag}-check'
457 name: 'xtesting-{tag}-check'
458 project-type: multijob
462 - xtesting-build_tag:
470 use-build-blocker: true
471 blocking-level: 'NODE'
473 - '^xtesting-{tag}-(daily|check|gate)$'
476 name: remove former images
478 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
480 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
483 name: remove dependencies
485 - name: 'xtesting-_-alpine-3.12-rmi'
488 name: pull dependencies
490 - name: 'xtesting-_-alpine-3.12-pull'
495 - name: 'xtesting-opnfv-xtesting-{tag}-check'
498 name: opnfv/xtesting-mts
500 - name: 'xtesting-opnfv-xtesting-mts-{tag}-check'
503 name: opnfv/xtesting:{tag}
505 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
507 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
509 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
511 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
513 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
515 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
518 name: opnfv/xtesting-mts:{tag}
520 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
524 name: xtesting-patchset-created
527 server-name: 'gerrit.opnfv.org'
529 - patchset-created-event
530 - comment-added-contains-event:
531 comment-contains-value: 'recheck'
532 - comment-added-contains-event:
533 comment-contains-value: 'reverify'
535 - project-compare-type: 'ANT'
536 project-pattern: 'functest-xtesting'
538 - branch-compare-type: 'ANT'
539 branch-pattern: '**/{branch}'
547 name: 'xtesting-{tag}-gate'
548 project-type: multijob
550 - xtesting-patchset-created:
555 - xtesting-build_tag:
561 use-build-blocker: true
562 blocking-level: 'NODE'
564 - '^xtesting-{tag}-(daily|check|gate)$'
567 name: remove former images
569 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
571 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
574 name: remove dependencies
576 - name: 'xtesting-_-alpine-3.12-rmi'
579 name: pull dependencies
581 - name: 'xtesting-_-alpine-3.12-pull'
586 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
589 name: opnfv/xtesting-mts
591 - name: 'xtesting-opnfv-xtesting-mts-{tag}-gate'
594 name: opnfv/xtesting:{tag}
596 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
598 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
600 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
602 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
604 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
606 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
609 name: opnfv/xtesting-mts:{tag}
611 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
618 - 'xtesting-{tag}-daily'
621 name: 'xtesting-gate'
624 - 'xtesting-{tag}-check'
625 - 'xtesting-{tag}-gate'
637 regex: ^xtesting-(arm.*-|amd64-)*[a-z]+-daily$
649 regex: ^xtesting-(arm.*-|amd64-)*[a-z]+-gate$