2 - functest-kubernetes-containers: &functest-kubernetes-containers
3 name: 'functest-kubernetes-containers'
6 container: '{container}'
9 - functest-kubernetes-params: &functest-kubernetes-params
10 name: 'functest-kubernetes-params'
51 - functest-kubernetes-jobs: &functest-kubernetes-jobs
52 name: 'functest-kubernetes-jobs'
53 current-parameters: true
56 name: functest-kubernetes-node
63 name: functest-kubernetes-build_tag
69 name: functest-kubernetes-DEPLOY_SCENARIO
73 default: k8-nosdn-nofeature-noha
75 - functest-kubernetes-run-containers: &functest-kubernetes-run-containers
76 name: 'functest-kubernetes-run-containers'
77 <<: *functest-kubernetes-containers
79 privileged: '{privileged}'
85 published_ports: '{published_ports}'
88 name: functest-kubernetes-pull-containers
92 if [ "{repo}" = "_" ]; then
93 image={container}:{tag}
94 elif [ "{port}" = "None" ]; then
95 image={repo}/{container}:{tag}
97 image={repo}:{port}/{container}:{tag}
102 name: functest-kubernetes-run-containers
107 if [ "{volumes}" != "None" ]; then
108 for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
109 do volumes="-v $i $volumes"; done
112 if [ "{env}" != "None" ]; then
113 for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
114 do env="-e $i $env"; done
117 if [ "{published_ports}" != "None" ]; then
118 for i in $(echo {published_ports} | tr -d '[]' |sed "s/, / /g" ); \
119 do published_ports="-p $i $published_ports"; done
121 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/results || true
122 if [ "{repo}" = "_" ]; then
123 image={container}:{tag}
124 elif [ "{port}" = "None" ]; then
125 image={repo}/{container}:{tag}
127 image={repo}:{port}/{container}:{tag}
129 mkdir -p $WORKSPACE/results
130 chown {uid}:{gid} $WORKSPACE/results
132 --privileged={privileged} \
133 --network={network} \
137 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
138 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
139 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
140 -v /home/opnfv/functest-kubernetes/.boto:/etc/boto.cfg \
141 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
142 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
144 -e BUILD_TAG=$BUILD_TAG \
145 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
146 $image run_tests -t {test} -p -r
149 name: functest-kubernetes-remove-images
153 if [ "{repo}" = "_" ]; then
154 image={container}:{tag}
155 elif [ "{port}" = "None" ]; then
156 image={repo}/{container}:{tag}
158 image={repo}:{port}/{container}:{tag}
160 docker rmi $image || true
163 name: 'functest-kubernetes-{repo}-{container}-{tag}-pull'
165 - functest-kubernetes-node:
168 - functest-kubernetes-pull-containers:
169 <<: *functest-kubernetes-containers
172 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-pull'
173 <<: *functest-kubernetes-params
174 container: 'functest-kubernetes-healthcheck'
176 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
179 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-pull'
180 <<: *functest-kubernetes-params
181 container: 'functest-kubernetes-smoke'
183 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
186 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-pull'
187 <<: *functest-kubernetes-params
188 container: 'functest-kubernetes-security'
190 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
193 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-pull'
194 <<: *functest-kubernetes-params
195 container: 'functest-kubernetes-benchmarking'
197 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
200 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-pull'
201 <<: *functest-kubernetes-params
202 container: 'functest-kubernetes-cnf'
204 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
207 name: 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
209 - functest-kubernetes-node:
212 - functest-kubernetes-remove-images:
213 <<: *functest-kubernetes-containers
216 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-rmi'
217 <<: *functest-kubernetes-params
218 container: 'functest-kubernetes-healthcheck'
220 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
223 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-rmi'
224 <<: *functest-kubernetes-params
225 container: 'functest-kubernetes-smoke'
227 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
230 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-rmi'
231 <<: *functest-kubernetes-params
232 container: 'functest-kubernetes-security'
234 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
237 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-rmi'
238 <<: *functest-kubernetes-params
239 container: 'functest-kubernetes-benchmarking'
241 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
244 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-rmi'
245 <<: *functest-kubernetes-params
246 container: 'functest-kubernetes-cnf'
248 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
251 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-{test}-run'
253 - functest-kubernetes-node:
255 - functest-kubernetes-build_tag:
257 - functest-kubernetes-DEPLOY_SCENARIO:
258 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
260 - functest-kubernetes-run-containers:
261 <<: *functest-kubernetes-run-containers
264 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck'
265 <<: *functest-kubernetes-params
267 - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
268 - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
270 - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
272 container: 'functest-kubernetes-healthcheck'
281 - 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-{test}-run'
284 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-{test}-run'
286 - functest-kubernetes-node:
288 - functest-kubernetes-build_tag:
290 - functest-kubernetes-DEPLOY_SCENARIO:
291 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
293 - functest-kubernetes-run-containers:
294 <<: *functest-kubernetes-run-containers
297 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke'
298 <<: *functest-kubernetes-params
300 - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
301 - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
303 - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
305 container: 'functest-kubernetes-smoke'
309 - k8s_conformance_serial
311 - sig_api_machinery_serial
315 - sig_cluster_lifecycle
316 - sig_instrumentation
319 - sig_scheduling_serial
327 - 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-{test}-run'
330 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-{test}-run'
332 - functest-kubernetes-node:
334 - functest-kubernetes-build_tag:
336 - functest-kubernetes-DEPLOY_SCENARIO:
337 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
339 - functest-kubernetes-run-containers:
340 <<: *functest-kubernetes-run-containers
343 name: 'functest-kubernetes-opnfv-functest-kubernetes-security'
344 <<: *functest-kubernetes-params
346 - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
347 - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
349 - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
351 container: 'functest-kubernetes-security'
361 - 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-{test}-run'
364 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-{test}-run'
366 - functest-kubernetes-node:
368 - functest-kubernetes-build_tag:
370 - functest-kubernetes-DEPLOY_SCENARIO:
371 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
373 - functest-kubernetes-run-containers:
374 <<: *functest-kubernetes-run-containers
377 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking'
378 <<: *functest-kubernetes-params
380 - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
381 - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
383 - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
385 container: 'functest-kubernetes-benchmarking'
387 - xrally_kubernetes_full
394 - 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-{test}-run'
397 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-{test}-run'
399 - functest-kubernetes-node:
401 - functest-kubernetes-build_tag:
403 - functest-kubernetes-DEPLOY_SCENARIO:
404 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
406 - functest-kubernetes-run-containers:
407 <<: *functest-kubernetes-run-containers
410 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf'
411 <<: *functest-kubernetes-params
413 - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
414 - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
416 - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
418 container: 'functest-kubernetes-cnf'
428 - 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-{test}-run'
431 name: functest-kubernetes-zip
436 if [ "{volumes}" != "None" ]; then
437 for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
438 do volumes="-v $i $volumes"; done
441 if [ "{env}" != "None" ]; then
442 for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
443 do env="-e $i $env"; done
446 if [ "{published_ports}" != "None" ]; then
447 for i in $(echo {published_ports} | tr -d '[]' |sed "s/, / /g" ); \
448 do published_ports="-p $i $published_ports"; done
450 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/results || true
451 if [ "{repo}" = "_" ]; then
452 image={container}:{tag}
453 elif [ "{port}" = "None" ]; then
454 image={repo}/{container}:{tag}
456 image={repo}:{port}/{container}:{tag}
458 mkdir -p $WORKSPACE/results
459 chown {uid}:{gid} $WORKSPACE/results
464 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
465 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
466 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
467 -v /home/opnfv/functest-kubernetes/.boto:/etc/boto.cfg \
468 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
469 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
470 -e BUILD_TAG=$BUILD_TAG \
471 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
475 name: 'functest-kubernetes-{tag}-zip'
477 - functest-kubernetes-node:
479 - functest-kubernetes-build_tag:
481 - functest-kubernetes-DEPLOY_SCENARIO:
482 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
484 - functest-kubernetes-zip:
485 <<: *functest-kubernetes-containers
490 published_ports: '{published_ports}'
493 name: 'functest-kubernetes-{tag}-zip'
494 <<: *functest-kubernetes-params
496 - /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config
497 - /home/opnfv/functest-kubernetes/config.{tag}:/home/xtesting/.kube/config
499 - DEPLOY_SCENARIO=$DEPLOY_SCENARIO
501 container: 'functest-kubernetes-healthcheck'
505 - 'functest-kubernetes-{tag}-zip'
508 name: 'functest-kubernetes-{tag}-daily'
509 project-type: multijob
513 - functest-kubernetes-node:
515 - functest-kubernetes-build_tag:
517 - functest-kubernetes-DEPLOY_SCENARIO:
518 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
519 # PyYAML and yamllint differ here
520 # see https://github.com/yaml/pyyaml/issues/234
521 # yamllint disable rule:indentation
525 - ^functest-kubernetes-(pi-)*.*-(daily|review)$
526 - ^functest-kubernetes-(pi-)*{tag}-docker$
527 # yamllint enable rule:indentation
530 name: remove former images
532 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
533 <<: *functest-kubernetes-jobs
534 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
535 <<: *functest-kubernetes-jobs
536 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
537 <<: *functest-kubernetes-jobs
538 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-rmi'
539 <<: *functest-kubernetes-jobs
540 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
541 <<: *functest-kubernetes-jobs
543 name: pull containers
545 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-pull'
546 <<: *functest-kubernetes-jobs
547 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-pull'
548 <<: *functest-kubernetes-jobs
549 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-pull'
550 <<: *functest-kubernetes-jobs
551 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-pull'
552 <<: *functest-kubernetes-jobs
553 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-pull'
554 <<: *functest-kubernetes-jobs
556 name: opnfv/functest-kubernetes-healthcheck:{tag}
558 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_quick-run'
559 <<: *functest-kubernetes-jobs
560 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
561 <<: *functest-kubernetes-jobs
563 name: opnfv/functest-kubernetes-smoke:{tag}
564 execution-type: SEQUENTIALLY
566 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
567 <<: *functest-kubernetes-jobs
568 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
569 <<: *functest-kubernetes-jobs
570 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance_serial-run'
571 <<: *functest-kubernetes-jobs
572 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_api_machinery-run'
573 <<: *functest-kubernetes-jobs
574 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_api_machinery_serial-run'
575 <<: *functest-kubernetes-jobs
576 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_apps-run'
577 <<: *functest-kubernetes-jobs
578 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_apps_serial-run'
579 <<: *functest-kubernetes-jobs
580 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_auth-run'
581 <<: *functest-kubernetes-jobs
582 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_cluster_lifecycle-run'
583 <<: *functest-kubernetes-jobs
584 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_instrumentation-run'
585 <<: *functest-kubernetes-jobs
586 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_network-run'
587 <<: *functest-kubernetes-jobs
588 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_node-run'
589 <<: *functest-kubernetes-jobs
590 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_scheduling_serial-run'
591 <<: *functest-kubernetes-jobs
592 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_storage-run'
593 <<: *functest-kubernetes-jobs
594 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_storage_serial-run'
595 <<: *functest-kubernetes-jobs
597 name: opnfv/functest-kubernetes-security:{tag}
599 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
600 <<: *functest-kubernetes-jobs
601 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench_master-run'
602 <<: *functest-kubernetes-jobs
603 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench_node-run'
604 <<: *functest-kubernetes-jobs
606 name: opnfv/functest-kubernetes-benchmarking:{tag}
608 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-xrally_kubernetes_full-run'
609 <<: *functest-kubernetes-jobs
610 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-netperf-run'
611 <<: *functest-kubernetes-jobs
613 name: opnfv/functest-kubernetes-cnf:{tag}
615 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
616 <<: *functest-kubernetes-jobs
617 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-helm_vims-run'
618 <<: *functest-kubernetes-jobs
619 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-cnf_testsuite-run'
620 <<: *functest-kubernetes-jobs
622 name: dump all campaign data
624 - name: 'functest-kubernetes-{tag}-zip'
625 <<: *functest-kubernetes-jobs
631 recipients: cedric.ollivier@orange.com
634 name: 'functest-kubernetes-daily'
635 <<: *functest-kubernetes-params
637 - 'functest-kubernetes-{tag}-daily'
640 name: functest-kubernetes
649 regex: ^functest-kubernetes-[a-z0-9.]+-daily$
651 - functest-kubernetes-build-containers: &functest-kubernetes-build-containers
652 name: 'functest-kubernetes-build-containers'
653 <<: *functest-kubernetes-containers
656 build_args: '{build_args}'
660 name: functest-kubernetes-build-containers
664 if [ "{repo}" = "_" ]; then
665 image={container}:{tag}
666 elif [ "{port}" = "None" ]; then
667 image={repo}/{container}:{tag}
669 image={repo}:{port}/{container}:{tag}
672 if [ "{build_args}" != "None" ]; then
673 for i in $(echo {build_args} | tr -d '[]' |sed "s/, / /g" ); \
674 do build_args="--build-arg $i $build_args"; done
676 if [ "{ref_arg}" != "None" ]; then
677 build_args="$build_args --build-arg {ref_arg}={ref}"
680 if [ "{from}" != "None" ]; then
681 sed -i {from} Dockerfile
683 docker build $build_args \
684 --pull=false --no-cache --force-rm=true \
688 name: functest-kubernetes-scm
691 url: 'https://gerrit.opnfv.org/gerrit/functest-kubernetes'
692 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
696 - functest-kubernetes-dep: &functest-kubernetes-dep
697 name: 'functest-kubernetes-containers'
701 dependency: '{dependency}'
704 name: functest-kubernetes-pull-dep-images
708 if [ "_" = "_" ]; then
709 image=alpine:{dependency}
710 elif [ "None" = "None" ]; then
711 image=_/alpine:{dependency}
713 image=_:/alpine:{dependency}
715 docker pull $image || true
718 name: functest-kubernetes-remove-dep-images
722 if [ "_" = "_" ]; then
723 image=alpine:{dependency}
724 elif [ "" = "None" ]; then
725 image=_/alpine:{dependency}
727 image=_:/alpine:{dependency}
729 docker rmi $image || true
732 name: 'functest-kubernetes-{repo}-{tag}-dep-pull'
734 - functest-kubernetes-node:
737 - functest-kubernetes-pull-dep-images:
738 <<: *functest-kubernetes-dep
741 name: 'functest-kubernetes-{repo}-{tag}-dep-pull'
742 <<: *functest-kubernetes-params
744 - 'functest-kubernetes-{repo}-{tag}-dep-pull'
747 name: 'functest-kubernetes-{repo}-{tag}-dep-rmi'
749 - functest-kubernetes-node:
752 - functest-kubernetes-remove-dep-images:
753 <<: *functest-kubernetes-dep
756 name: 'functest-kubernetes-{repo}-{tag}-dep-rmi'
757 <<: *functest-kubernetes-params
759 - 'functest-kubernetes-{repo}-{tag}-dep-rmi'
762 name: functest-kubernetes-tox
766 apt-get -o DPkg::Lock::Timeout=300 update && \
767 DEBIAN_FRONTEND=noninteractive apt-get \
768 -o DPkg::Lock::Timeout=300 dist-upgrade -y
769 DEBIAN_FRONTEND=noninteractive \
770 apt-get -o DPkg::Lock::Timeout=300 install software-properties-common gpg -y
771 add-apt-repository -y ppa:deadsnakes/ppa
772 apt-get -o DPkg::Lock::Timeout=300 update && \
773 DEBIAN_FRONTEND=noninteractive apt-get \
774 -o DPkg::Lock::Timeout=300 install \
775 libxml2-dev libxslt-dev libffi-dev libjpeg-dev \
776 python3.10 python3.10-dev python3.10-distutils \
777 python3.9 python3.9-dev python3.9-distutils \
778 python3.8 python3.8-dev python3.8-distutils \
779 python3-pip enchant-2 -y
780 pip3 install tox tox-pip-version
785 name: 'functest-kubernetes-{tag}-tox'
787 - functest-kubernetes-scm:
790 - functest-kubernetes-patchset-created:
793 - functest-kubernetes-node:
796 - functest-kubernetes-tox:
799 name: functest-kubernetes-tox
800 <<: *functest-kubernetes-params
802 - 'functest-kubernetes-{tag}-tox'
805 name: 'functest-kubernetes-{repo}-{container}-{tag}-gate'
807 - functest-kubernetes-node:
810 - functest-kubernetes-scm:
813 - functest-kubernetes-build-containers:
814 <<: *functest-kubernetes-build-containers
816 build_args: '{build_args}'
819 name: functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-gate
820 <<: *functest-kubernetes-params
821 container: functest-kubernetes-core
825 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
828 name: functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-gate
829 <<: *functest-kubernetes-params
830 container: functest-kubernetes-healthcheck
832 path: docker/healthcheck
834 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
837 name: functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-gate
838 <<: *functest-kubernetes-params
839 container: functest-kubernetes-cnf
843 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
846 name: functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-gate
847 <<: *functest-kubernetes-params
848 container: functest-kubernetes-security
850 path: docker/security
852 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
855 name: functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-gate
856 <<: *functest-kubernetes-params
857 container: functest-kubernetes-smoke
861 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
864 name: functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-gate
865 <<: *functest-kubernetes-params
866 container: functest-kubernetes-benchmarking
868 path: docker/benchmarking
870 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
873 name: functest-kubernetes-patchset-created
877 - patchset-created-event
878 - comment-added-contains-event:
879 comment-contains-value: 'recheck'
880 - comment-added-contains-event:
881 comment-contains-value: 'reverify'
883 - project-compare-type: 'ANT'
884 project-pattern: 'functest-kubernetes'
886 - branch-compare-type: 'ANT'
887 branch-pattern: '**/{branch}'
890 name: 'functest-kubernetes-{tag}-review'
891 project-type: multijob
893 - functest-kubernetes-patchset-created:
896 - functest-kubernetes-node:
898 - functest-kubernetes-build_tag:
900 - functest-kubernetes-DEPLOY_SCENARIO:
901 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
902 # PyYAML and yamllint differ here
903 # see https://github.com/yaml/pyyaml/issues/234
904 # yamllint disable rule:indentation
908 - ^functest-kubernetes-(pi-)*.*-(daily|review)$
909 - ^functest-kubernetes-(pi-)*{tag}-docker$
910 # yamllint enable rule:indentation
913 name: remove former images
915 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
916 <<: *functest-kubernetes-jobs
917 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
918 <<: *functest-kubernetes-jobs
919 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
920 <<: *functest-kubernetes-jobs
921 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-rmi'
922 <<: *functest-kubernetes-jobs
923 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
924 <<: *functest-kubernetes-jobs
926 name: remove dependency
928 - name: 'functest-kubernetes-{repo}-{tag}-dep-rmi'
929 <<: *functest-kubernetes-jobs
931 name: pull dependency
933 - name: 'functest-kubernetes-{repo}-{tag}-dep-pull'
934 <<: *functest-kubernetes-jobs
936 name: build opnfv/functest-kubernetes-core
938 - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-gate'
939 <<: *functest-kubernetes-jobs
941 name: build containers
943 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-gate'
944 <<: *functest-kubernetes-jobs
945 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-gate'
946 <<: *functest-kubernetes-jobs
947 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-gate'
948 <<: *functest-kubernetes-jobs
950 name: build opnfv/functest-kubernetes-smoke
952 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-gate'
953 <<: *functest-kubernetes-jobs
955 name: build opnfv/functest-kubernetes-benchmarking
957 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-gate'
958 <<: *functest-kubernetes-jobs
960 name: opnfv/functest-kubernetes-healthcheck:{tag}
962 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_quick-run'
963 <<: *functest-kubernetes-jobs
964 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
965 <<: *functest-kubernetes-jobs
967 name: opnfv/functest-kubernetes-smoke:{tag}
968 execution-type: SEQUENTIALLY
970 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
971 <<: *functest-kubernetes-jobs
972 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
973 <<: *functest-kubernetes-jobs
974 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance_serial-run'
975 <<: *functest-kubernetes-jobs
976 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_api_machinery-run'
977 <<: *functest-kubernetes-jobs
978 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_api_machinery_serial-run'
979 <<: *functest-kubernetes-jobs
980 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_apps-run'
981 <<: *functest-kubernetes-jobs
982 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_apps_serial-run'
983 <<: *functest-kubernetes-jobs
984 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_auth-run'
985 <<: *functest-kubernetes-jobs
986 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_cluster_lifecycle-run'
987 <<: *functest-kubernetes-jobs
988 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_instrumentation-run'
989 <<: *functest-kubernetes-jobs
990 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_network-run'
991 <<: *functest-kubernetes-jobs
992 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_node-run'
993 <<: *functest-kubernetes-jobs
994 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_scheduling_serial-run'
995 <<: *functest-kubernetes-jobs
996 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_storage-run'
997 <<: *functest-kubernetes-jobs
998 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_storage_serial-run'
999 <<: *functest-kubernetes-jobs
1001 name: opnfv/functest-kubernetes-security:{tag}
1003 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
1004 <<: *functest-kubernetes-jobs
1005 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench_master-run'
1006 <<: *functest-kubernetes-jobs
1007 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench_node-run'
1008 <<: *functest-kubernetes-jobs
1010 name: opnfv/functest-kubernetes-benchmarking:{tag}
1012 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-xrally_kubernetes_full-run'
1013 <<: *functest-kubernetes-jobs
1014 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-netperf-run'
1015 <<: *functest-kubernetes-jobs
1017 name: opnfv/functest-kubernetes-cnf:{tag}
1019 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
1020 <<: *functest-kubernetes-jobs
1021 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-helm_vims-run'
1022 <<: *functest-kubernetes-jobs
1023 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-cnf_testsuite-run'
1024 <<: *functest-kubernetes-jobs
1030 recipients: cedric.ollivier@orange.com
1033 name: 'functest-kubernetes-review'
1034 <<: *functest-kubernetes-params
1036 - 'functest-kubernetes-{tag}-review'
1039 name: functest-kubernetes-review
1048 regex: ^functest-kubernetes-[a-z0-9.]+-review$
1051 name: functest-kubernetes-tox
1060 regex: ^functest-kubernetes-[a-z0-9.]+-tox$
1063 name: functest-kubernetes-push-containers
1067 if [ "{repo}" = "_" ]; then
1068 image={container}:{tag}
1069 elif [ "{port}" = "None" ]; then
1070 image={repo}/{container}:{tag}
1072 image={repo}:{port}/{container}:{tag}
1077 name: functest-kubernetes-commit
1080 cron: "*/30 * * * *"
1083 name: 'functest-kubernetes-{repo}-{container}-{tag}-build'
1085 - functest-kubernetes-node:
1088 - functest-kubernetes-scm:
1091 - functest-kubernetes-build-containers:
1092 <<: *functest-kubernetes-build-containers
1094 build_args: '{build_args}'
1095 - functest-kubernetes-push-containers:
1096 <<: *functest-kubernetes-build-containers
1100 name: functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-build
1101 <<: *functest-kubernetes-params
1102 container: functest-kubernetes-core
1106 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
1109 name: functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-build
1110 <<: *functest-kubernetes-params
1111 container: functest-kubernetes-healthcheck
1113 path: docker/healthcheck
1115 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
1118 name: functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-build
1119 <<: *functest-kubernetes-params
1120 container: functest-kubernetes-cnf
1124 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
1127 name: functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-build
1128 <<: *functest-kubernetes-params
1129 container: functest-kubernetes-security
1131 path: docker/security
1133 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
1136 name: functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-build
1137 <<: *functest-kubernetes-params
1138 container: functest-kubernetes-smoke
1142 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
1145 name: functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-build
1146 <<: *functest-kubernetes-params
1147 container: functest-kubernetes-benchmarking
1149 path: docker/benchmarking
1151 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
1154 name: 'functest-kubernetes-{tag}-docker'
1155 project-type: multijob
1157 - functest-kubernetes-commit
1159 - functest-kubernetes-scm:
1162 - functest-kubernetes-node:
1164 # PyYAML and yamllint differ here
1165 # see https://github.com/yaml/pyyaml/issues/234
1166 # yamllint disable rule:indentation
1170 - ^functest-kubernetes-(pi-)*{tag}-(daily|review)$
1171 # yamllint enable rule:indentation
1174 name: remove dependency
1176 - name: 'functest-kubernetes-{repo}-{tag}-dep-rmi'
1177 <<: *functest-kubernetes-jobs
1179 name: pull dependency
1181 - name: 'functest-kubernetes-{repo}-{tag}-dep-pull'
1182 <<: *functest-kubernetes-jobs
1184 name: build opnfv/functest-kubernetes-core
1186 - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-build'
1187 <<: *functest-kubernetes-jobs
1189 name: build containers
1191 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-build'
1192 <<: *functest-kubernetes-jobs
1193 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-build'
1194 <<: *functest-kubernetes-jobs
1195 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-build'
1196 <<: *functest-kubernetes-jobs
1198 name: build opnfv/functest-kubernetes-smoke
1200 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-build'
1201 <<: *functest-kubernetes-jobs
1203 name: build opnfv/functest-kubernetes-benchmarking
1205 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-build'
1206 <<: *functest-kubernetes-jobs
1212 recipients: cedric.ollivier@orange.com
1215 name: functest-kubernetes-trivy
1218 apt-get -o DPkg::Lock::Timeout=300 update && \
1219 DEBIAN_FRONTEND=noninteractive apt-get \
1220 -o DPkg::Lock::Timeout=300 install curl -y
1222 curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b .
1223 if [ "{repo}" = "_" ]; then
1224 image={container}:{tag}
1225 elif [ "{port}" = "None" ]; then
1226 image={repo}/{container}:{tag}
1228 image={repo}:{port}/{container}:{tag}
1230 ./trivy image --exit-code 1 $image
1233 name: 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1237 - functest-kubernetes-node:
1240 - functest-kubernetes-trivy:
1241 <<: *functest-kubernetes-containers
1247 recipients: cedric.ollivier@orange.com
1250 name: 'functest-kubernetes-opnfv-functest-kubernetes-core-trivy'
1251 <<: *functest-kubernetes-params
1252 container: 'functest-kubernetes-core'
1254 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1257 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-trivy'
1258 <<: *functest-kubernetes-params
1259 container: 'functest-kubernetes-healthcheck'
1261 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1264 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-trivy'
1265 <<: *functest-kubernetes-params
1266 container: 'functest-kubernetes-cnf'
1268 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1271 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-trivy'
1272 <<: *functest-kubernetes-params
1273 container: 'functest-kubernetes-security'
1275 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1278 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-trivy'
1279 <<: *functest-kubernetes-params
1280 container: 'functest-kubernetes-smoke'
1282 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1285 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-trivy'
1286 <<: *functest-kubernetes-params
1287 container: 'functest-kubernetes-benchmarking'
1289 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1292 name: functest-kubernetes-grype
1295 apt-get -o DPkg::Lock::Timeout=300 update && \
1296 DEBIAN_FRONTEND=noninteractive apt-get \
1297 -o DPkg::Lock::Timeout=300 install curl -y
1299 curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b .
1300 if [ "{repo}" = "_" ]; then
1301 image={container}:{tag}
1302 elif [ "{port}" = "None" ]; then
1303 image={repo}/{container}:{tag}
1305 image={repo}:{port}/{container}:{tag}
1310 name: 'functest-kubernetes-{repo}-{container}-{tag}-grype'
1314 - functest-kubernetes-node:
1317 - functest-kubernetes-grype:
1318 <<: *functest-kubernetes-containers
1324 recipients: cedric.ollivier@orange.com
1327 name: 'functest-kubernetes-opnfv-functest-kubernetes-core-grype'
1328 <<: *functest-kubernetes-params
1329 container: 'functest-kubernetes-core'
1331 - 'functest-kubernetes-{repo}-{container}-{tag}-grype'
1334 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-grype'
1335 <<: *functest-kubernetes-params
1336 container: 'functest-kubernetes-healthcheck'
1338 - 'functest-kubernetes-{repo}-{container}-{tag}-grype'
1341 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-grype'
1342 <<: *functest-kubernetes-params
1343 container: 'functest-kubernetes-cnf'
1345 - 'functest-kubernetes-{repo}-{container}-{tag}-grype'
1348 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-grype'
1349 <<: *functest-kubernetes-params
1350 container: 'functest-kubernetes-security'
1352 - 'functest-kubernetes-{repo}-{container}-{tag}-grype'
1355 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-grype'
1356 <<: *functest-kubernetes-params
1357 container: 'functest-kubernetes-smoke'
1359 - 'functest-kubernetes-{repo}-{container}-{tag}-grype'
1362 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-grype'
1363 <<: *functest-kubernetes-params
1364 container: 'functest-kubernetes-benchmarking'
1366 - 'functest-kubernetes-{repo}-{container}-{tag}-grype'
1369 name: functest-kubernetes-sbom
1372 apt-get -o DPkg::Lock::Timeout=300 update && \
1373 DEBIAN_FRONTEND=noninteractive apt-get \
1374 -o DPkg::Lock::Timeout=300 install curl -y
1377 curl -sSfL https://raw.githubusercontent.com/docker/sbom-cli-plugin/main/install.sh | sh -s --
1378 if [ "{repo}" = "_" ]; then
1379 image={container}:{tag}
1380 elif [ "{port}" = "None" ]; then
1381 image={repo}/{container}:{tag}
1383 image={repo}:{port}/{container}:{tag}
1388 name: 'functest-kubernetes-{repo}-{container}-{tag}-sbom'
1392 - functest-kubernetes-node:
1395 - functest-kubernetes-sbom:
1396 <<: *functest-kubernetes-containers
1402 recipients: cedric.ollivier@orange.com
1405 name: 'functest-kubernetes-opnfv-functest-kubernetes-core-sbom'
1406 <<: *functest-kubernetes-params
1407 container: 'functest-kubernetes-core'
1409 - 'functest-kubernetes-{repo}-{container}-{tag}-sbom'
1412 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-sbom'
1413 <<: *functest-kubernetes-params
1414 container: 'functest-kubernetes-healthcheck'
1416 - 'functest-kubernetes-{repo}-{container}-{tag}-sbom'
1419 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-sbom'
1420 <<: *functest-kubernetes-params
1421 container: 'functest-kubernetes-cnf'
1423 - 'functest-kubernetes-{repo}-{container}-{tag}-sbom'
1426 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-sbom'
1427 <<: *functest-kubernetes-params
1428 container: 'functest-kubernetes-security'
1430 - 'functest-kubernetes-{repo}-{container}-{tag}-sbom'
1433 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-sbom'
1434 <<: *functest-kubernetes-params
1435 container: 'functest-kubernetes-smoke'
1437 - 'functest-kubernetes-{repo}-{container}-{tag}-sbom'
1440 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-sbom'
1441 <<: *functest-kubernetes-params
1442 container: 'functest-kubernetes-benchmarking'
1444 - 'functest-kubernetes-{repo}-{container}-{tag}-sbom'
1447 name: 'functest-kubernetes'
1448 <<: *functest-kubernetes-params
1450 - 'functest-kubernetes-{tag}-docker'
1453 name: functest-kubernetes-docker
1462 regex: ^functest-kubernetes-[a-z0-9.]+-docker$
1465 name: functest-kubernetes-trivy
1474 regex: (?!functest-kubernetes-pi)(?!functest-kubernetes-ng)^functest-kubernetes-[a-z-0-9.]+-trivy$
1477 name: functest-kubernetes-grype
1486 regex: (?!functest-kubernetes-pi)(?!functest-kubernetes-ng)^functest-kubernetes-[a-z-0-9.]+-grype$
1489 name: functest-kubernetes-sbom
1498 regex: (?!functest-kubernetes-pi)(?!functest-kubernetes-ng)^functest-kubernetes-[a-z-0-9.]+-sbom$