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
120 - xtesting-build-containers: &xtesting-build-containers
121 name: 'xtesting-build-containers'
122 <<: *xtesting-containers
127 name: xtesting-build-containers
131 if [ "{repo}" = "_" ]; then
132 image={container}:{tag}
133 elif [ "{port}" = "None" ]; then
134 image={repo}/{container}:{tag}
136 image={repo}:{port}/{container}:{tag}
138 if [ "{ref_arg}" = "None" ]; then
141 build_arg="--build-arg {ref_arg}={ref}"
149 sudo docker build $build_arg \
150 --pull=false --no-cache --force-rm=true \
157 url: 'gerrit.opnfv.org'
158 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
163 name: 'xtesting-{repo}-{container}-{tag}-pull'
168 - xtesting-pull-containers:
169 <<: *xtesting-containers
172 name: 'xtesting-opnfv-xtesting-pull'
174 container: 'xtesting'
176 - 'xtesting-{repo}-{container}-{tag}-pull'
179 name: 'xtesting-opnfv-xtesting-mts-pull'
181 container: 'xtesting-mts'
188 - 'xtesting-{repo}-{container}-{tag}-pull'
191 name: 'xtesting-{repo}-{container}-{tag}-rmi'
196 - xtesting-remove-images:
197 <<: *xtesting-containers
200 name: 'xtesting-opnfv-xtesting-rmi'
202 container: 'xtesting'
204 - 'xtesting-{repo}-{container}-{tag}-rmi'
207 name: 'xtesting-opnfv-xtesting-mts-rmi'
209 container: 'xtesting-mts'
216 - 'xtesting-{repo}-{container}-{tag}-rmi'
219 name: 'xtesting-{repo}-{container}-{tag}-{test}-run'
223 - xtesting-build_tag:
228 - xtesting-run-containers:
229 <<: *xtesting-run-containers
232 name: 'xtesting-opnfv-xtesting'
234 container: 'xtesting'
250 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
253 name: 'xtesting-opnfv-xtesting-mts'
255 container: 'xtesting-mts'
270 - 'xtesting-{repo}-{container}-{tag}-{test}-run'
278 if [ "{repo}" = "_" ]; then
279 image={container}:{tag}
280 elif [ "{port}" = "None" ]; then
281 image={repo}/{container}:{tag}
283 image={repo}:{port}/{container}:{tag}
285 sudo docker run --rm \
286 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
287 -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \
288 -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \
289 -v /home/opnfv/xtesting/.boto:/root/.boto \
290 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
291 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
292 -e BUILD_TAG=$BUILD_TAG \
293 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
298 name: 'xtesting-{tag}-zip'
302 - xtesting-build_tag:
308 <<: *xtesting-containers
311 name: 'xtesting-{tag}-zip'
313 container: 'xtesting'
315 - 'xtesting-{tag}-zip'
318 name: 'xtesting-{tag}-daily'
319 project-type: multijob
325 - xtesting-build_tag:
331 use-build-blocker: true
332 blocking-level: 'NODE'
334 - '^xtesting-{tag}-(daily|review)$'
337 name: remove former images
339 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
341 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
344 name: pull containers
346 - name: 'xtesting-opnfv-xtesting-{tag}-pull'
348 - name: 'xtesting-opnfv-xtesting-mts-{tag}-pull'
351 name: opnfv/xtesting:{tag}
353 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
355 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
357 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
359 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
361 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
363 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
366 name: opnfv/xtesting-mts:{tag}
368 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
371 name: dump all campaign data
373 - name: 'xtesting-{tag}-zip'
377 name: 'xtesting-_-alpine-3.13-rmi'
384 - 'xtesting-{repo}-{container}-{tag}-rmi'
387 name: 'xtesting-_-alpine-3.13-pull'
394 - 'xtesting-{repo}-{container}-{tag}-pull'
403 name: 'xtesting-{tag}-tox'
408 - xtesting-patchset-created:
420 - 'xtesting-{tag}-tox'
423 name: xtesting-opnfv-xtesting-{tag}-gate
429 - 'xtesting-{repo}-{container}-{tag}-gate'
432 name: xtesting-opnfv-xtesting-mts-{tag}-gate
434 container: xtesting-mts
443 - 'xtesting-{repo}-{container}-{tag}-gate'
447 name: 'xtesting-{repo}-{container}-{tag}-gate'
455 - xtesting-build-containers:
456 <<: *xtesting-build-containers
460 name: xtesting-patchset-created
463 server-name: 'gerrit.opnfv.org'
465 - patchset-created-event
466 - comment-added-contains-event:
467 comment-contains-value: 'recheck'
468 - comment-added-contains-event:
469 comment-contains-value: 'reverify'
471 - project-compare-type: 'ANT'
472 project-pattern: 'functest-xtesting'
474 - branch-compare-type: 'ANT'
475 branch-pattern: '**/{branch}'
483 name: 'xtesting-{tag}-review'
484 project-type: multijob
486 - xtesting-patchset-created:
491 - xtesting-build_tag:
497 use-build-blocker: true
498 blocking-level: 'NODE'
500 - '^xtesting-{tag}-(daily|review)$'
503 name: remove former images
505 - name: 'xtesting-opnfv-xtesting-{tag}-rmi'
507 - name: 'xtesting-opnfv-xtesting-mts-{tag}-rmi'
510 name: remove dependencies
512 - name: 'xtesting-_-alpine-3.13-rmi'
515 name: pull dependencies
517 - name: 'xtesting-_-alpine-3.13-pull'
522 - name: 'xtesting-opnfv-xtesting-{tag}-gate'
525 name: opnfv/xtesting-mts
527 - name: 'xtesting-opnfv-xtesting-mts-{tag}-gate'
530 name: opnfv/xtesting:{tag}
532 - name: 'xtesting-opnfv-xtesting-{tag}-first-run'
534 - name: 'xtesting-opnfv-xtesting-{tag}-second-run'
536 - name: 'xtesting-opnfv-xtesting-{tag}-third-run'
538 - name: 'xtesting-opnfv-xtesting-{tag}-fourth-run'
540 - name: 'xtesting-opnfv-xtesting-{tag}-fifth-run'
542 - name: 'xtesting-opnfv-xtesting-{tag}-sixth-run'
545 name: opnfv/xtesting-mts:{tag}
547 - name: 'xtesting-opnfv-xtesting-mts-{tag}-seventh-run'
551 name: xtesting-commit
556 name: 'xtesting-{repo}-{container}-{tag}-build'
564 - xtesting-build-containers:
565 <<: *xtesting-build-containers
569 name: xtesting-opnfv-xtesting-{tag}-build
575 - 'xtesting-{repo}-{container}-{tag}-build'
578 name: xtesting-opnfv-xtesting-mts-{tag}-build
580 container: xtesting-mts
589 - 'xtesting-{repo}-{container}-{tag}-build'
593 name: 'xtesting-{tag}-docker'
594 project-type: multijob
607 name: remove dependencies
609 - name: 'xtesting-_-alpine-3.13-rmi'
612 name: pull dependencies
614 - name: 'xtesting-_-alpine-3.13-pull'
619 - name: 'xtesting-opnfv-xtesting-{tag}-build'
622 name: opnfv/xtesting-mts
624 - name: 'xtesting-opnfv-xtesting-mts-{tag}-build'
631 - 'xtesting-{tag}-daily'
632 - 'xtesting-{tag}-review'
633 - 'xtesting-{tag}-docker'
645 regex: ^xtesting-[a-z-]+-daily$
648 name: xtesting-review
657 regex: ^xtesting-[a-z-]+-review$
669 regex: ^xtesting-[a-z-]+-tox$
672 name: xtesting-docker
681 regex: ^xtesting-[a-z-]+-docker$