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'
182 - 'xtesting-{repo}-{container}-{tag}-pull'
185 name: 'xtesting-{repo}-{container}-{tag}-rmi'
190 - xtesting-remove-images:
191 <<: *xtesting-containers
194 name: 'xtesting-opnfv-xtesting-rmi'
196 container: 'xtesting'
198 - 'xtesting-{repo}-{container}-{tag}-rmi'
201 name: 'xtesting-opnfv-xtesting-mts-rmi'
203 container: 'xtesting-mts'
205 - 'xtesting-{repo}-{container}-{tag}-rmi'
208 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
212 - xtesting-build_tag:
217 - xtesting-run-containers:
218 <<: *xtesting-run-containers
221 name: 'xtesting-opnfv-xtesting'
223 container: 'xtesting'
239 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
242 name: 'xtesting-opnfv-xtesting-mts'
244 container: 'xtesting-mts'
259 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
266 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
267 if [ "{repo}" = "_" ]; then
268 image={container}:{tag}
269 elif [ "{port}" = "None" ]; then
270 image={repo}/{container}:{tag}
272 image={repo}:{port}/{container}:{tag}
274 sudo docker run --rm \
275 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
276 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
277 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
278 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
279 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
280 -e BUILD_TAG=$BUILD_TAG \
281 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
283 -v /home/opnfv/xtesting/.boto:/root/.boto \
287 name: 'xtesting-{tag}-zip'
291 - xtesting-build_tag:
297 <<: *xtesting-containers
300 name: 'xtesting-{tag}-zip'
302 container: 'xtesting'
304 - 'xtesting-{tag}-zip'
307 name: 'xtesting-{tag}-daily'
308 project-type: multijob
314 - xtesting-build_tag:
320 use-build-blocker: true
321 blocking-level: 'NODE'
323 - '^xtesting-{tag}-(daily|check|gate)$'
326 name: remove former images
328 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
330 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
333 name: pull containers
335 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
337 - name: 'xtesting-opnfv-xtesting-mts-{tag}-pull'
340 name: opnfv/xtesting:{tag}
342 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
344 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
346 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
348 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
350 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
352 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
355 name: opnfv/xtesting-mts:{tag}
357 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
360 name: dump all campaign data
362 - name: 'xtesting-{tag}-zip'
366 name: 'xtesting-{repo}-{container}-{tag}-gate'
374 - xtesting-build-containers:
375 <<: *xtesting-build-containers
379 name: 'xtesting-{repo}-{container}-{tag}-check'
389 - xtesting-build-containers:
390 <<: *xtesting-build-containers
394 name: 'xtesting-_-alpine-3.12-rmi'
401 - 'xtesting-{repo}-{container}-{tag}-rmi'
404 name: 'xtesting-_-alpine-3.12-pull'
411 - 'xtesting-{repo}-{container}-{tag}-pull'
414 name: xtesting-opnfv-xtesting-{tag}-build
420 - 'xtesting-{repo}-{container}-{tag}-gate'
421 - 'xtesting-{repo}-{container}-{tag}-check'
424 name: xtesting-opnfv-xtesting-mts-{tag}-build
426 container: xtesting-mts
430 - 'xtesting-{repo}-{container}-{tag}-gate'
431 - 'xtesting-{repo}-{container}-{tag}-check'
434 name: 'xtesting-{tag}-check'
435 project-type: multijob
439 - xtesting-build_tag:
447 use-build-blocker: true
448 blocking-level: 'NODE'
450 - '^xtesting-{tag}-(daily|check|gate)$'
453 name: remove former images
455 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
457 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
460 name: remove dependencies
462 - name: 'xtesting-_-alpine-3.12-rmi'
465 name: pull dependencies
467 - name: 'xtesting-_-alpine-3.12-pull'
472 - name: 'xtesting-opnfv-xtesting-{tag}-check'
475 name: opnfv/xtesting-mts
477 - name: 'xtesting-opnfv-xtesting-mts-{tag}-check'
480 name: opnfv/xtesting:{tag}
482 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
484 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
486 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
488 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
490 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
492 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
495 name: opnfv/xtesting-mts:{tag}
497 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
501 name: xtesting-patchset-created
504 server-name: 'gerrit.opnfv.org'
506 - patchset-created-event
507 - comment-added-contains-event:
508 comment-contains-value: 'recheck'
509 - comment-added-contains-event:
510 comment-contains-value: 'reverify'
512 - project-compare-type: 'ANT'
513 project-pattern: 'functest-xtesting'
515 - branch-compare-type: 'ANT'
516 branch-pattern: '**/{branch}'
524 name: 'xtesting-{tag}-gate'
525 project-type: multijob
527 - xtesting-patchset-created:
532 - xtesting-build_tag:
538 use-build-blocker: true
539 blocking-level: 'NODE'
541 - '^xtesting-{tag}-(daily|check|gate)$'
544 name: remove former images
546 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
548 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
551 name: remove dependencies
553 - name: 'xtesting-_-alpine-3.12-rmi'
556 name: pull dependencies
558 - name: 'xtesting-_-alpine-3.12-pull'
563 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
566 name: opnfv/xtesting-mts
568 - name: 'xtesting-opnfv-xtesting-mts-{tag}-gate'
571 name: opnfv/xtesting:{tag}
573 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
575 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
577 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
579 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
581 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
583 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
586 name: opnfv/xtesting-mts:{tag}
588 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
595 - 'xtesting-{tag}-daily'
596 - 'xtesting-{tag}-check'
597 - 'xtesting-{tag}-gate'
609 regex: ^xtesting-[a-z]+-daily$
621 regex: ^xtesting-[a-z]+-gate$