2 - xtesting-jobs: &xtesting-jobs
4 current-parameters: true
6 - xtesting-params: &xtesting-params
7 name: 'xtesting-params'
38 name: xtesting-build_tag
50 - xtesting-containers: &xtesting-containers
51 name: 'xtesting-containers'
54 container: '{container}'
57 - xtesting-run-containers: &xtesting-run-containers
58 name: 'xtesting-run-containers'
59 <<: *xtesting-containers
61 privileged: '{privileged}'
65 name: xtesting-pull-containers
69 if [ "{repo}" = "_" ]; then
70 image={container}:{tag}
71 elif [ "{port}" = "None" ]; then
72 image={repo}/{container}:{tag}
74 image={repo}:{port}/{container}:{tag}
76 sudo docker pull $image
79 name: xtesting-run-containers
83 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
84 if [ "{repo}" = "_" ]; then
85 image={container}:{tag}
86 elif [ "{port}" = "None" ]; then
87 image={repo}/{container}:{tag}
89 image={repo}:{port}/{container}:{tag}
91 sudo docker run --rm \
92 --privileged={privileged} \
94 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
95 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
96 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
97 -v /home/opnfv/xtesting/.boto:/root/.boto \
98 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
99 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
100 -e NODE_NAME=$slave \
101 -e BUILD_TAG=$BUILD_TAG \
102 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
104 $image run_tests -t {test} -p -r
107 name: xtesting-remove-images
111 if [ "{repo}" = "_" ]; then
112 image={container}:{tag}
113 elif [ "{port}" = "None" ]; then
114 image={repo}/{container}:{tag}
116 image={repo}:{port}/{container}:{tag}
118 sudo docker rmi $image || true
121 name: xtesting-branch
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'
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 -v /home/opnfv/xtesting/.boto:/root/.boto \
297 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
298 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
299 -e BUILD_TAG=$BUILD_TAG \
300 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
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|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-_-alpine-3.13-rmi'
404 - 'xtesting-{repo}-{container}-{tag}-rmi'
407 name: 'xtesting-_-alpine-3.13-pull'
414 - 'xtesting-{repo}-{container}-{tag}-pull'
417 name: xtesting-opnfv-xtesting-{tag}-gate
423 - 'xtesting-{repo}-{container}-{tag}-gate'
426 name: xtesting-opnfv-xtesting-mts-{tag}-gate
428 container: xtesting-mts
437 - 'xtesting-{repo}-{container}-{tag}-gate'
441 name: xtesting-patchset-created
444 server-name: 'gerrit.opnfv.org'
446 - patchset-created-event
447 - comment-added-contains-event:
448 comment-contains-value: 'recheck'
449 - comment-added-contains-event:
450 comment-contains-value: 'reverify'
452 - project-compare-type: 'ANT'
453 project-pattern: 'functest-xtesting'
455 - branch-compare-type: 'ANT'
456 branch-pattern: '**/{branch}'
464 name: 'xtesting-{tag}-review'
465 project-type: multijob
467 - xtesting-patchset-created:
472 - xtesting-build_tag:
478 use-build-blocker: true
479 blocking-level: 'NODE'
481 - '^xtesting-{tag}-(daily|gate)$'
484 name: remove former images
486 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
488 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
491 name: remove dependencies
493 - name: 'xtesting-_-alpine-3.13-rmi'
496 name: pull dependencies
498 - name: 'xtesting-_-alpine-3.13-pull'
503 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
506 name: opnfv/xtesting-mts
508 - name: 'xtesting-opnfv-xtesting-mts-{tag}-gate'
511 name: opnfv/xtesting:{tag}
513 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
515 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
517 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
519 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
521 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
523 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
526 name: opnfv/xtesting-mts:{tag}
528 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
532 name: 'xtesting-{repo}-{container}-{tag}-build'
542 - xtesting-build-containers:
543 <<: *xtesting-build-containers
547 name: xtesting-opnfv-xtesting-{tag}-build
553 - 'xtesting-{repo}-{container}-{tag}-build'
556 name: xtesting-opnfv-xtesting-mts-{tag}-build
558 container: xtesting-mts
567 - 'xtesting-{repo}-{container}-{tag}-build'
571 name: 'xtesting-{tag}-docker'
572 project-type: multijob
582 name: remove dependencies
584 - name: 'xtesting-_-alpine-3.13-rmi'
587 name: pull dependencies
589 - name: 'xtesting-_-alpine-3.13-pull'
594 - name: 'xtesting-opnfv-xtesting-{tag}-build'
597 name: opnfv/xtesting-mts
599 - name: 'xtesting-opnfv-xtesting-mts-{tag}-build'
606 - 'xtesting-{tag}-daily'
607 - 'xtesting-{tag}-review'
608 - 'xtesting-{tag}-docker'
620 regex: ^xtesting-[a-z-]+-daily$
623 name: xtesting-review
632 regex: ^xtesting-[a-z-]+-review$
635 name: xtesting-docker
644 regex: ^xtesting-[a-z-]+-docker$