2 - functest-kubernetes-jobs: &functest-kubernetes-jobs
3 name: 'functest-kubernetes-jobs'
4 current-parameters: true
6 - functest-kubernetes-params: &functest-kubernetes-params
7 name: 'functest-kubernetes-params'
43 name: functest-kubernetes-slave
50 name: functest-kubernetes-build_tag
56 name: functest-kubernetes-branch
63 name: functest-kubernetes-DEPLOY_SCENARIO
67 default: k8-nosdn-nofeature-noha
69 name: functest-kubernetes-DEBUG
75 - functest-kubernetes-containers: &functest-kubernetes-containers
76 name: 'functest-kubernetes-containers'
79 container: '{container}'
82 - functest-kubernetes-run-containers: &functest-kubernetes-run-containers
83 name: 'functest-kubernetes-run-containers'
84 <<: *functest-kubernetes-containers
86 privileged: '{privileged}'
90 name: functest-kubernetes-pull-containers
94 if [ "{repo}" = "_" ]; then
95 image={container}:{tag}
96 elif [ "{port}" = "None" ]; then
97 image={repo}/{container}:{tag}
99 image={repo}:{port}/{container}:{tag}
104 name: functest-kubernetes-run-containers
108 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
109 if [ "{repo}" = "_" ]; then
110 image={container}:{tag}
111 elif [ "{port}" = "None" ]; then
112 image={repo}/{container}:{tag}
114 image={repo}:{port}/{container}:{tag}
117 --privileged={privileged} \
118 --network={network} \
119 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
120 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
121 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
122 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
123 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
124 -e NODE_NAME=$slave \
125 -e BUILD_TAG=$BUILD_TAG \
126 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
127 -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
129 -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
130 -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
131 $image run_tests -t {test} -p -r
134 name: functest-kubernetes-remove-images
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 docker rmi $image || true
147 - functest-kubernetes-build-containers: &functest-kubernetes-build-containers
148 name: 'functest-kubernetes-build-containers'
149 <<: *functest-kubernetes-containers
154 name: functest-kubernetes-build-containers
158 if [ "{repo}" = "_" ]; then
159 image={container}:{tag}
160 elif [ "{port}" = "None" ]; then
161 image={repo}/{container}:{tag}
163 image={repo}:{port}/{container}:{tag}
165 if [ "{ref_arg}" = "None" ]; then
168 build_arg="--build-arg {ref_arg}={ref}"
171 docker build $build_arg \
172 --pull=false --no-cache --force-rm=true \
176 name: functest-kubernetes-scm
179 url: https://gerrit.opnfv.org/gerrit/functest-kubernetes
180 refspec: '+refs/changes/*:refs/changes/*'
185 name: 'functest-kubernetes-{repo}-{container}-{tag}-pull'
187 - functest-kubernetes-slave:
190 - functest-kubernetes-pull-containers:
191 <<: *functest-kubernetes-containers
194 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-pull'
195 <<: *functest-kubernetes-params
196 container: 'functest-kubernetes-healthcheck'
198 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
201 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-pull'
202 <<: *functest-kubernetes-params
203 container: 'functest-kubernetes-smoke'
205 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
208 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-pull'
209 <<: *functest-kubernetes-params
210 container: 'functest-kubernetes-security'
212 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
215 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-pull'
216 <<: *functest-kubernetes-params
217 container: 'functest-kubernetes-cnf'
219 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
222 name: 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
224 - functest-kubernetes-slave:
227 - functest-kubernetes-remove-images:
228 <<: *functest-kubernetes-containers
231 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-rmi'
232 <<: *functest-kubernetes-params
233 container: 'functest-kubernetes-healthcheck'
235 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
238 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-rmi'
239 <<: *functest-kubernetes-params
240 container: 'functest-kubernetes-smoke'
242 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
245 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-rmi'
246 <<: *functest-kubernetes-params
247 container: 'functest-kubernetes-security'
249 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
252 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-rmi'
253 <<: *functest-kubernetes-params
254 container: 'functest-kubernetes-cnf'
256 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
259 name: 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
261 - functest-kubernetes-slave:
263 - functest-kubernetes-build_tag:
265 - functest-kubernetes-DEPLOY_SCENARIO:
266 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
267 - functest-kubernetes-DEBUG:
270 - functest-kubernetes-run-containers:
271 <<: *functest-kubernetes-run-containers
274 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck'
275 <<: *functest-kubernetes-params
276 container: 'functest-kubernetes-healthcheck'
282 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
285 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke'
286 <<: *functest-kubernetes-params
287 container: 'functest-kubernetes-smoke'
294 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
297 name: 'functest-kubernetes-opnfv-functest-kubernetes-security'
298 <<: *functest-kubernetes-params
299 container: 'functest-kubernetes-security'
306 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
309 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf'
310 <<: *functest-kubernetes-params
311 container: 'functest-kubernetes-cnf'
317 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
321 name: functest-kubernetes-zip
325 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
326 if [ "{repo}" = "_" ]; then
327 image={container}:{tag}
328 elif [ "{port}" = "None" ]; then
329 image={repo}/{container}:{tag}
331 image={repo}:{port}/{container}:{tag}
334 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
335 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
336 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
337 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
338 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
339 -e BUILD_TAG=$BUILD_TAG \
340 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
341 -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
343 -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
344 -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
348 name: 'functest-kubernetes-{tag}-zip'
350 - functest-kubernetes-slave:
352 - functest-kubernetes-build_tag:
354 - functest-kubernetes-DEPLOY_SCENARIO:
355 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
356 - functest-kubernetes-DEBUG:
359 - functest-kubernetes-zip:
360 <<: *functest-kubernetes-containers
363 name: 'functest-kubernetes-{tag}-zip'
364 <<: *functest-kubernetes-params
365 container: 'functest-kubernetes-healthcheck'
367 - 'functest-kubernetes-{tag}-zip'
370 name: 'functest-kubernetes-{tag}-daily'
371 project-type: multijob
375 - functest-kubernetes-slave:
377 - functest-kubernetes-build_tag:
379 - functest-kubernetes-DEPLOY_SCENARIO:
380 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
381 - functest-kubernetes-DEBUG:
385 use-build-blocker: true
386 blocking-level: 'NODE'
388 - '^functest-kubernetes(-pi)?-(arm.*-|amd64-)*[a-z]+-(daily|gate|check)$'
391 name: remove former images
393 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
394 <<: *functest-kubernetes-jobs
395 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
396 <<: *functest-kubernetes-jobs
397 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
398 <<: *functest-kubernetes-jobs
399 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
400 <<: *functest-kubernetes-jobs
402 name: pull containers
404 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-pull'
405 <<: *functest-kubernetes-jobs
406 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-pull'
407 <<: *functest-kubernetes-jobs
408 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-pull'
409 <<: *functest-kubernetes-jobs
410 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-pull'
411 <<: *functest-kubernetes-jobs
413 name: opnfv/functest-kubernetes-healthcheck:{tag}
415 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
416 <<: *functest-kubernetes-jobs
418 name: opnfv/functest-kubernetes-smoke:{tag}
420 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
421 <<: *functest-kubernetes-jobs
422 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
423 <<: *functest-kubernetes-jobs
425 name: opnfv/functest-kubernetes-security:{tag}
427 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
428 <<: *functest-kubernetes-jobs
429 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench-run'
430 <<: *functest-kubernetes-jobs
432 name: opnfv/functest-kubernetes-cnf:{tag}
434 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
435 <<: *functest-kubernetes-jobs
437 name: dump all campaign data
439 - name: 'functest-kubernetes-{tag}-zip'
440 <<: *functest-kubernetes-jobs
443 name: 'functest-kubernetes-{repo}-{container}-{tag}-gate'
445 - functest-kubernetes-slave:
448 - functest-kubernetes-scm:
451 - functest-kubernetes-build-containers:
452 <<: *functest-kubernetes-build-containers
456 name: 'functest-kubernetes-{repo}-{container}-{tag}-check'
458 - functest-kubernetes-slave:
460 - functest-kubernetes-branch:
463 - functest-kubernetes-scm:
466 - functest-kubernetes-build-containers:
467 <<: *functest-kubernetes-build-containers
471 name: 'functest-kubernetes-_-golang-1.14-alpine3.12-rmi'
475 tag: '1.14-alpine3.12'
484 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
487 name: 'functest-kubernetes-_-golang-1.14-alpine3.12-pull'
491 tag: '1.14-alpine3.12'
500 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
503 name: functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-build
504 <<: *functest-kubernetes-params
505 container: functest-kubernetes-core
515 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
516 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
519 name: functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-build
520 <<: *functest-kubernetes-params
521 container: functest-kubernetes-healthcheck
523 path: docker/healthcheck
531 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
532 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
535 name: functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-build
536 <<: *functest-kubernetes-params
537 container: functest-kubernetes-cnf
547 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
548 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
551 name: functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-build
552 <<: *functest-kubernetes-params
553 container: functest-kubernetes-security
555 path: docker/security
563 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
564 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
567 name: functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-build
568 <<: *functest-kubernetes-params
569 container: functest-kubernetes-smoke
579 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
580 - 'functest-kubernetes-{repo}-{container}-{tag}-check'
583 name: 'functest-kubernetes-{tag}-check'
584 project-type: multijob
586 - functest-kubernetes-slave:
588 - functest-kubernetes-build_tag:
590 - functest-kubernetes-branch:
592 - functest-kubernetes-DEPLOY_SCENARIO:
593 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
594 - functest-kubernetes-DEBUG:
598 use-build-blocker: true
599 blocking-level: 'NODE'
601 - '^functest-kubernetes(-pi)?-(arm.*-|amd64-)*[a-z]+-(daily|gate|check)$'
604 name: remove former images
606 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
607 <<: *functest-kubernetes-jobs
608 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
609 <<: *functest-kubernetes-jobs
610 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
611 <<: *functest-kubernetes-jobs
612 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
613 <<: *functest-kubernetes-jobs
615 name: remove dependencies
617 - name: 'functest-kubernetes-_-golang-1.14-alpine3.12-rmi'
618 <<: *functest-kubernetes-jobs
620 name: pull dependencies
622 - name: 'functest-kubernetes-_-golang-1.14-alpine3.12-pull'
623 <<: *functest-kubernetes-jobs
625 name: build opnfv/functest-kubernetes-core
627 - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-check'
628 <<: *functest-kubernetes-jobs
630 name: build opnfv/functest-kubernetes-healthcheck
632 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-check'
633 <<: *functest-kubernetes-jobs
634 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-check'
635 <<: *functest-kubernetes-jobs
636 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-check'
637 <<: *functest-kubernetes-jobs
639 name: build containers
641 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-check'
642 <<: *functest-kubernetes-jobs
644 name: opnfv/functest-kubernetes-healthcheck:{tag}
646 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
647 <<: *functest-kubernetes-jobs
649 name: opnfv/functest-kubernetes-smoke:{tag}
651 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
652 <<: *functest-kubernetes-jobs
653 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
654 <<: *functest-kubernetes-jobs
656 name: opnfv/functest-kubernetes-security:{tag}
658 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
659 <<: *functest-kubernetes-jobs
660 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench-run'
661 <<: *functest-kubernetes-jobs
663 name: opnfv/functest-kubernetes-cnf:{tag}
665 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
666 <<: *functest-kubernetes-jobs
669 name: functest-kubernetes-patchset-created
672 server-name: 'gerrit.opnfv.org'
674 - patchset-created-event
675 - comment-added-contains-event:
676 comment-contains-value: 'recheck'
677 - comment-added-contains-event:
678 comment-contains-value: 'reverify'
680 - project-compare-type: 'ANT'
681 project-pattern: 'functest-kubernetes'
683 - branch-compare-type: 'ANT'
684 branch-pattern: '**/{branch}'
692 name: 'functest-kubernetes-{tag}-gate'
693 project-type: multijob
695 - functest-kubernetes-patchset-created:
698 - functest-kubernetes-slave:
700 - functest-kubernetes-build_tag:
702 - functest-kubernetes-DEPLOY_SCENARIO:
703 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
704 - functest-kubernetes-DEBUG:
708 use-build-blocker: true
709 blocking-level: 'NODE'
711 - '^functest-kubernetes(-pi)?-(arm.*-|amd64-)*[a-z]+-(daily|gate|check)$'
714 name: remove former images
716 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
717 <<: *functest-kubernetes-jobs
718 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
719 <<: *functest-kubernetes-jobs
720 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
721 <<: *functest-kubernetes-jobs
722 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
723 <<: *functest-kubernetes-jobs
725 name: remove dependencies
727 - name: 'functest-kubernetes-_-golang-1.14-alpine3.12-rmi'
728 <<: *functest-kubernetes-jobs
730 name: pull dependencies
732 - name: 'functest-kubernetes-_-golang-1.14-alpine3.12-pull'
733 <<: *functest-kubernetes-jobs
735 name: build opnfv/functest-kubernetes-core
737 - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-gate'
738 <<: *functest-kubernetes-jobs
740 name: build opnfv/functest-kubernetes-healthcheck
742 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-gate'
743 <<: *functest-kubernetes-jobs
744 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-gate'
745 <<: *functest-kubernetes-jobs
746 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-gate'
747 <<: *functest-kubernetes-jobs
749 name: build containers
751 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-gate'
752 <<: *functest-kubernetes-jobs
754 name: opnfv/functest-kubernetes-healthcheck:{tag}
756 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
757 <<: *functest-kubernetes-jobs
759 name: opnfv/functest-kubernetes-smoke:{tag}
761 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
762 <<: *functest-kubernetes-jobs
763 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
764 <<: *functest-kubernetes-jobs
766 name: opnfv/functest-kubernetes-security:{tag}
768 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
769 <<: *functest-kubernetes-jobs
770 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench-run'
771 <<: *functest-kubernetes-jobs
773 name: opnfv/functest-kubernetes-cnf:{tag}
775 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
776 <<: *functest-kubernetes-jobs
779 name: 'functest-kubernetes'
780 <<: *functest-kubernetes-params
782 - 'functest-kubernetes-{tag}-daily'
785 name: 'functest-kubernetes-gate'
786 <<: *functest-kubernetes-params
794 - 'functest-kubernetes-{tag}-check'
795 - 'functest-kubernetes-{tag}-gate'
798 name: functest-kubernetes
807 regex: ^functest-kubernetes-(arm.*-|amd64-)*[a-z]+-daily$
810 name: functest-kubernetes-gate
819 regex: ^functest-kubernetes-(arm.*-|amd64-)*[a-z]+-gate$