2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
35 name: xtesting-build_tag
54 - xtesting-containers: &xtesting-containers
55 name: 'xtesting-containers'
58 container: '{container}'
61 - xtesting-run-containers: &xtesting-run-containers
62 name: 'xtesting-run-containers'
63 <<: *xtesting-containers
65 privileged: '{privileged}'
69 name: xtesting-pull-containers
73 if [ "{repo}" = "_" ]; then
74 image={container}:{tag}
75 elif [ "{port}" = "None" ]; then
76 image={repo}/{container}:{tag}
78 image={repo}:{port}/{container}:{tag}
80 sudo docker pull $image
83 name: xtesting-run-containers
87 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
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 run --rm \
96 --privileged={privileged} \
98 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
99 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
100 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
101 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
102 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
103 -e NODE_NAME=$slave \
104 -e BUILD_TAG=$BUILD_TAG \
105 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
107 -v /home/opnfv/xtesting/.boto:/root/.boto \
108 $image run_tests -t {test} -p -r
111 name: xtesting-remove-images
115 if [ "{repo}" = "_" ]; then
116 image={container}:{tag}
117 elif [ "{port}" = "None" ]; then
118 image={repo}/{container}:{tag}
120 image={repo}:{port}/{container}:{tag}
122 sudo docker rmi $image || true
124 - xtesting-build-containers: &xtesting-build-containers
125 name: 'xtesting-build-containers'
126 <<: *xtesting-containers
131 name: xtesting-build-containers
135 if [ "{repo}" = "_" ]; then
136 image={container}:{tag}
137 elif [ "{port}" = "None" ]; then
138 image={repo}/{container}:{tag}
140 image={repo}:{port}/{container}:{tag}
142 if [ "{ref_arg}" = "None" ]; then
145 build_arg="--build-arg {ref_arg}={ref}"
148 sudo docker build $build_arg \
149 --pull=false --no-cache --force-rm=true \
156 url: https://gerrit.opnfv.org/gerrit/functest-xtesting
157 refspec: '+refs/changes/*:refs/changes/*'
162 name: 'xtesting-{repo}-{container}-{tag}-pull'
167 - xtesting-pull-containers:
168 <<: *xtesting-containers
171 name: 'xtesting-opnfv-xtesting-pull'
173 container: 'xtesting'
175 - 'xtesting-{repo}-{container}-{tag}-pull'
178 name: 'xtesting-opnfv-xtesting-mts-pull'
180 container: 'xtesting-mts'
187 - 'xtesting-{repo}-{container}-{tag}-pull'
190 name: 'xtesting-{repo}-{container}-{tag}-rmi'
195 - xtesting-remove-images:
196 <<: *xtesting-containers
199 name: 'xtesting-opnfv-xtesting-rmi'
201 container: 'xtesting'
203 - 'xtesting-{repo}-{container}-{tag}-rmi'
206 name: 'xtesting-opnfv-xtesting-mts-rmi'
208 container: 'xtesting-mts'
215 - 'xtesting-{repo}-{container}-{tag}-rmi'
218 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
222 - xtesting-build_tag:
227 - xtesting-run-containers:
228 <<: *xtesting-run-containers
231 name: 'xtesting-opnfv-xtesting'
233 container: 'xtesting'
249 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
252 name: 'xtesting-opnfv-xtesting-mts'
254 container: 'xtesting-mts'
269 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
276 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
277 if [ "{repo}" = "_" ]; then
278 image={container}:{tag}
279 elif [ "{port}" = "None" ]; then
280 image={repo}/{container}:{tag}
282 image={repo}:{port}/{container}:{tag}
284 sudo docker run --rm \
285 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
286 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
287 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
288 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
289 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
290 -e BUILD_TAG=$BUILD_TAG \
291 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
293 -v /home/opnfv/xtesting/.boto:/root/.boto \
297 name: 'xtesting-{tag}-zip'
301 - xtesting-build_tag:
307 <<: *xtesting-containers
310 name: 'xtesting-{tag}-zip'
312 container: 'xtesting'
314 - 'xtesting-{tag}-zip'
317 name: 'xtesting-{tag}-daily'
318 project-type: multijob
324 - xtesting-build_tag:
330 use-build-blocker: true
331 blocking-level: 'NODE'
333 - '^xtesting-{tag}-(daily|check|gate)$'
336 name: remove former images
338 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
340 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
343 name: pull containers
345 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
347 - name: 'xtesting-opnfv-xtesting-mts-{tag}-pull'
350 name: opnfv/xtesting:{tag}
352 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
354 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
356 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
358 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
360 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
362 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
365 name: opnfv/xtesting-mts:{tag}
367 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
370 name: dump all campaign data
372 - name: 'xtesting-{tag}-zip'
376 name: 'xtesting-{repo}-{container}-{tag}-gate'
384 - xtesting-build-containers:
385 <<: *xtesting-build-containers
389 name: 'xtesting-{repo}-{container}-{tag}-check'
399 - xtesting-build-containers:
400 <<: *xtesting-build-containers
404 name: 'xtesting-_-alpine-3.12-rmi'
411 - 'xtesting-{repo}-{container}-{tag}-rmi'
414 name: 'xtesting-_-alpine-3.12-pull'
421 - 'xtesting-{repo}-{container}-{tag}-pull'
424 name: xtesting-opnfv-xtesting-{tag}-build
430 - 'xtesting-{repo}-{container}-{tag}-gate'
431 - 'xtesting-{repo}-{container}-{tag}-check'
434 name: xtesting-opnfv-xtesting-mts-{tag}-build
436 container: xtesting-mts
440 - 'xtesting-{repo}-{container}-{tag}-gate'
441 - 'xtesting-{repo}-{container}-{tag}-check'
444 name: 'xtesting-{tag}-check'
445 project-type: multijob
449 - xtesting-build_tag:
457 use-build-blocker: true
458 blocking-level: 'NODE'
460 - '^xtesting-{tag}-(daily|check|gate)$'
463 name: remove former images
465 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
467 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
470 name: remove dependencies
472 - name: 'xtesting-_-alpine-3.12-rmi'
475 name: pull dependencies
477 - name: 'xtesting-_-alpine-3.12-pull'
482 - name: 'xtesting-opnfv-xtesting-{tag}-check'
485 name: opnfv/xtesting-mts
487 - name: 'xtesting-opnfv-xtesting-mts-{tag}-check'
490 name: opnfv/xtesting:{tag}
492 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
494 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
496 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
498 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
500 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
502 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
505 name: opnfv/xtesting-mts:{tag}
507 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
511 name: xtesting-patchset-created
514 server-name: 'gerrit.opnfv.org'
516 - patchset-created-event
517 - comment-added-contains-event:
518 comment-contains-value: 'recheck'
519 - comment-added-contains-event:
520 comment-contains-value: 'reverify'
522 - project-compare-type: 'ANT'
523 project-pattern: 'functest-xtesting'
525 - branch-compare-type: 'ANT'
526 branch-pattern: '**/{branch}'
534 name: 'xtesting-{tag}-gate'
535 project-type: multijob
537 - xtesting-patchset-created:
542 - xtesting-build_tag:
548 use-build-blocker: true
549 blocking-level: 'NODE'
551 - '^xtesting-{tag}-(daily|check|gate)$'
554 name: remove former images
556 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
558 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
561 name: remove dependencies
563 - name: 'xtesting-_-alpine-3.12-rmi'
566 name: pull dependencies
568 - name: 'xtesting-_-alpine-3.12-pull'
573 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
576 name: opnfv/xtesting-mts
578 - name: 'xtesting-opnfv-xtesting-mts-{tag}-gate'
581 name: opnfv/xtesting:{tag}
583 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
585 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
587 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
589 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
591 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
593 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
596 name: opnfv/xtesting-mts:{tag}
598 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
605 - 'xtesting-{tag}-daily'
606 - 'xtesting-{tag}-check'
607 - 'xtesting-{tag}-gate'
619 regex: ^xtesting-[a-z]+-daily$
631 regex: ^xtesting-[a-z]+-gate$