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-slave
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}'
83 name: functest-kubernetes-pull-containers
87 if [ "{repo}" = "_" ]; then
88 image={container}:{tag}
89 elif [ "{port}" = "None" ]; then
90 image={repo}/{container}:{tag}
92 image={repo}:{port}/{container}:{tag}
97 name: functest-kubernetes-run-containers
101 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/results || true
102 if [ "{repo}" = "_" ]; then
103 image={container}:{tag}
104 elif [ "{port}" = "None" ]; then
105 image={repo}/{container}:{tag}
107 image={repo}:{port}/{container}:{tag}
110 --privileged={privileged} \
111 --network={network} \
112 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
113 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
114 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
115 -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
116 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
117 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
118 -e NODE_NAME=$slave \
119 -e BUILD_TAG=$BUILD_TAG \
120 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
121 -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
122 -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
123 $image run_tests -t {test} -p -r
126 name: functest-kubernetes-remove-images
130 if [ "{repo}" = "_" ]; then
131 image={container}:{tag}
132 elif [ "{port}" = "None" ]; then
133 image={repo}/{container}:{tag}
135 image={repo}:{port}/{container}:{tag}
137 docker rmi $image || true
140 name: 'functest-kubernetes-{repo}-{container}-{tag}-pull'
142 - functest-kubernetes-slave:
145 - functest-kubernetes-pull-containers:
146 <<: *functest-kubernetes-containers
149 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-pull'
150 <<: *functest-kubernetes-params
151 container: 'functest-kubernetes-healthcheck'
153 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
156 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-pull'
157 <<: *functest-kubernetes-params
158 container: 'functest-kubernetes-smoke'
160 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
163 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-pull'
164 <<: *functest-kubernetes-params
165 container: 'functest-kubernetes-security'
167 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
170 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-pull'
171 <<: *functest-kubernetes-params
172 container: 'functest-kubernetes-benchmarking'
174 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
177 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-pull'
178 <<: *functest-kubernetes-params
179 container: 'functest-kubernetes-cnf'
181 - 'functest-kubernetes-{repo}-{container}-{tag}-pull'
184 name: 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
186 - functest-kubernetes-slave:
189 - functest-kubernetes-remove-images:
190 <<: *functest-kubernetes-containers
193 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-rmi'
194 <<: *functest-kubernetes-params
195 container: 'functest-kubernetes-healthcheck'
197 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
200 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-rmi'
201 <<: *functest-kubernetes-params
202 container: 'functest-kubernetes-smoke'
204 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
207 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-rmi'
208 <<: *functest-kubernetes-params
209 container: 'functest-kubernetes-security'
211 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
214 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-rmi'
215 <<: *functest-kubernetes-params
216 container: 'functest-kubernetes-benchmarking'
218 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
221 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-rmi'
222 <<: *functest-kubernetes-params
223 container: 'functest-kubernetes-cnf'
225 - 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
228 name: 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
230 - functest-kubernetes-slave:
232 - functest-kubernetes-build_tag:
234 - functest-kubernetes-DEPLOY_SCENARIO:
235 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
237 - functest-kubernetes-run-containers:
238 <<: *functest-kubernetes-run-containers
241 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck'
242 <<: *functest-kubernetes-params
243 container: 'functest-kubernetes-healthcheck'
250 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
253 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke'
254 <<: *functest-kubernetes-params
255 container: 'functest-kubernetes-smoke'
260 - sig_network_features
265 - {'tag': 'leguer', 'test': 'sig_network'}
266 - {'tag': 'leguer', 'test': 'sig_network_features'}
267 - {'tag': 'leguer', 'test': 'sig_storage'}
268 - {'tag': 'kali', 'test': 'sig_network'}
269 - {'tag': 'kali', 'test': 'sig_network_features'}
270 - {'tag': 'kali', 'test': 'sig_storage'}
271 - {'tag': 'jerma', 'test': 'sig_network'}
272 - {'tag': 'jerma', 'test': 'sig_network_features'}
273 - {'tag': 'jerma', 'test': 'sig_storage'}
274 - {'tag': 'iruya', 'test': 'sig_network'}
275 - {'tag': 'iruya', 'test': 'sig_network_features'}
276 - {'tag': 'iruya', 'test': 'sig_storage'}
277 - {'tag': 'hunter', 'test': 'sig_network'}
278 - {'tag': 'hunter', 'test': 'sig_network_features'}
279 - {'tag': 'hunter', 'test': 'sig_storage'}
281 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
284 name: 'functest-kubernetes-opnfv-functest-kubernetes-security'
285 <<: *functest-kubernetes-params
286 container: 'functest-kubernetes-security'
294 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
297 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking'
298 <<: *functest-kubernetes-params
299 container: 'functest-kubernetes-benchmarking'
301 - xrally_kubernetes_full
305 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
308 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf'
309 <<: *functest-kubernetes-params
310 container: 'functest-kubernetes-cnf'
318 - 'functest-kubernetes-{repo}-{container}-{tag}-{test}-run'
322 name: functest-kubernetes-zip
326 [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/results || true
327 if [ "{repo}" = "_" ]; then
328 image={container}:{tag}
329 elif [ "{port}" = "None" ]; then
330 image={repo}/{container}:{tag}
332 image={repo}:{port}/{container}:{tag}
335 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
336 -e S3_DST_URL=s3://artifacts.opnfv.org/functest-kubernetes \
337 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest-kubernetes \
338 -v /home/opnfv/functest-kubernetes/.boto:/root/.boto \
339 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
340 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
341 -e BUILD_TAG=$BUILD_TAG \
342 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
343 -e DEPLOY_SCENARIO=$DEPLOY_SCENARIO \
344 -v /home/opnfv/functest-kubernetes/config.{tag}:/root/.kube/config \
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
357 - functest-kubernetes-zip:
358 <<: *functest-kubernetes-containers
361 name: 'functest-kubernetes-{tag}-zip'
362 <<: *functest-kubernetes-params
363 container: 'functest-kubernetes-healthcheck'
365 - 'functest-kubernetes-{tag}-zip'
368 name: 'functest-kubernetes-{tag}-daily'
369 project-type: multijob
373 - functest-kubernetes-slave:
375 - functest-kubernetes-build_tag:
377 - functest-kubernetes-DEPLOY_SCENARIO:
378 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
381 use-build-blocker: true
382 blocking-level: 'NODE'
384 - '^functest-kubernetes-{tag}-(daily|docker|review)$'
387 name: remove former images
389 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
390 <<: *functest-kubernetes-jobs
391 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
392 <<: *functest-kubernetes-jobs
393 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
394 <<: *functest-kubernetes-jobs
395 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-rmi'
396 <<: *functest-kubernetes-jobs
397 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
398 <<: *functest-kubernetes-jobs
400 name: pull containers
402 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-pull'
403 <<: *functest-kubernetes-jobs
404 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-pull'
405 <<: *functest-kubernetes-jobs
406 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-pull'
407 <<: *functest-kubernetes-jobs
408 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{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_quick-run'
416 <<: *functest-kubernetes-jobs
417 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
418 <<: *functest-kubernetes-jobs
420 name: opnfv/functest-kubernetes-smoke:{tag}
422 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
423 <<: *functest-kubernetes-jobs
424 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
425 <<: *functest-kubernetes-jobs
426 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_network-run'
427 <<: *functest-kubernetes-jobs
428 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_network_features-run'
429 <<: *functest-kubernetes-jobs
430 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_storage-run'
431 <<: *functest-kubernetes-jobs
433 name: opnfv/functest-kubernetes-security:{tag}
435 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
436 <<: *functest-kubernetes-jobs
437 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench_master-run'
438 <<: *functest-kubernetes-jobs
439 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench_node-run'
440 <<: *functest-kubernetes-jobs
442 name: opnfv/functest-kubernetes-benchmarking:{tag}
444 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-xrally_kubernetes_full-run'
445 <<: *functest-kubernetes-jobs
447 name: opnfv/functest-kubernetes-cnf:{tag}
449 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
450 <<: *functest-kubernetes-jobs
451 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-helm_vims-run'
452 <<: *functest-kubernetes-jobs
453 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-cnf_conformance-run'
454 <<: *functest-kubernetes-jobs
456 name: dump all campaign data
458 - name: 'functest-kubernetes-{tag}-zip'
459 <<: *functest-kubernetes-jobs
462 name: 'functest-kubernetes-daily'
463 <<: *functest-kubernetes-params
465 - 'functest-kubernetes-{tag}-daily'
468 name: functest-kubernetes
477 regex: ^functest-kubernetes-[a-z0-9.]+-daily$
479 - functest-kubernetes-build-containers: &functest-kubernetes-build-containers
480 name: 'functest-kubernetes-build-containers'
481 <<: *functest-kubernetes-containers
484 buildargs: '{buildargs}'
488 name: functest-kubernetes-build-containers
492 if [ "{repo}" = "_" ]; then
493 image={container}:{tag}
494 elif [ "{port}" = "None" ]; then
495 image={repo}/{container}:{tag}
497 image={repo}:{port}/{container}:{tag}
500 if [ "{buildargs}" != "None" ]; then
501 build_args="{buildargs}"
503 if [ "{ref_arg}" != "None" ]; then
504 build_args="$build_args --build-arg {ref_arg}={ref}"
507 if [ "{from}" != "None" ]; then
508 sed -i {from} Dockerfile
510 docker build $build_args \
511 --pull=false --no-cache --force-rm=true \
515 name: functest-kubernetes-scm
518 url: 'https://gerrit.opnfv.org/gerrit/functest-kubernetes'
519 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
523 - functest-kubernetes-dep: &functest-kubernetes-dep
524 name: 'functest-kubernetes-containers'
528 dependency: '{dependency}'
531 name: functest-kubernetes-pull-dep-images
535 if [ "_" = "_" ]; then
536 image=alpine:{dependency}
537 elif [ "_" = "None" ]; then
538 image=_/alpine:{dependency}
540 image=_:/alpine{dependency}
542 docker pull $image || true
545 name: functest-kubernetes-remove-dep-images
549 if [ "_" = "_" ]; then
550 image=alpine:{dependency}
551 elif [ "_" = "None" ]; then
552 image=_/alpine:{dependency}
554 image=_:/alpine{dependency}
556 docker rmi $image || true
559 name: 'functest-kubernetes-{repo}-{tag}-dep-pull'
561 - functest-kubernetes-slave:
564 - functest-kubernetes-pull-dep-images:
565 <<: *functest-kubernetes-dep
568 name: 'functest-kubernetes-{repo}-{tag}-dep-pull'
569 <<: *functest-kubernetes-params
571 - 'functest-kubernetes-{repo}-{tag}-dep-pull'
574 name: 'functest-kubernetes-{repo}-{tag}-dep-rmi'
576 - functest-kubernetes-slave:
579 - functest-kubernetes-remove-dep-images:
580 <<: *functest-kubernetes-dep
583 name: 'functest-kubernetes-{repo}-{tag}-dep-rmi'
584 <<: *functest-kubernetes-params
586 - 'functest-kubernetes-{repo}-{tag}-dep-rmi'
589 name: functest-kubernetes-tox
593 apt-get update && apt-get install software-properties-common gpg -y
594 add-apt-repository -y ppa:deadsnakes/ppa
595 apt-get update && apt-get install python3.8 python3.8-dev \
596 python3.8-distutils \
597 python3.7 python3.7-dev python3.6 python3.6-dev \
598 python python-dev python3-pip enchant -y
599 pip3 install tox tox-pip-version
603 name: 'functest-kubernetes-{tag}-tox'
605 - functest-kubernetes-scm:
608 - functest-kubernetes-patchset-created:
611 - functest-kubernetes-slave:
614 - functest-kubernetes-tox:
617 name: functest-kubernetes-tox
618 <<: *functest-kubernetes-params
620 - 'functest-kubernetes-{tag}-tox'
623 name: 'functest-kubernetes-{repo}-{container}-{tag}-gate'
625 - functest-kubernetes-slave:
628 - functest-kubernetes-scm:
631 - functest-kubernetes-build-containers:
632 <<: *functest-kubernetes-build-containers
634 buildargs: '{buildargs}'
637 name: functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-gate
638 <<: *functest-kubernetes-params
639 container: functest-kubernetes-core
643 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
646 name: functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-gate
647 <<: *functest-kubernetes-params
648 container: functest-kubernetes-healthcheck
650 path: docker/healthcheck
652 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
655 name: functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-gate
656 <<: *functest-kubernetes-params
657 container: functest-kubernetes-cnf
661 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
664 name: functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-gate
665 <<: *functest-kubernetes-params
666 container: functest-kubernetes-security
668 path: docker/security
670 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
673 name: functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-gate
674 <<: *functest-kubernetes-params
675 container: functest-kubernetes-smoke
679 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
682 name: functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-gate
683 <<: *functest-kubernetes-params
684 container: functest-kubernetes-benchmarking
686 path: docker/benchmarking
688 - 'functest-kubernetes-{repo}-{container}-{tag}-gate'
692 name: functest-kubernetes-patchset-created
696 - patchset-created-event
697 - comment-added-contains-event:
698 comment-contains-value: 'recheck'
699 - comment-added-contains-event:
700 comment-contains-value: 'reverify'
702 - project-compare-type: 'ANT'
703 project-pattern: 'functest-kubernetes'
705 - branch-compare-type: 'ANT'
706 branch-pattern: '**/{branch}'
709 name: 'functest-kubernetes-{tag}-review'
710 project-type: multijob
712 - functest-kubernetes-patchset-created:
715 - functest-kubernetes-slave:
717 - functest-kubernetes-build_tag:
719 - functest-kubernetes-DEPLOY_SCENARIO:
720 DEPLOY_SCENARIO: k8-nosdn-nofeature-noha
723 use-build-blocker: true
724 blocking-level: 'NODE'
726 - '^functest-kubernetes-{tag}-(daily|docker|review)$'
729 name: remove former images
731 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-rmi'
732 <<: *functest-kubernetes-jobs
733 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-rmi'
734 <<: *functest-kubernetes-jobs
735 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-rmi'
736 <<: *functest-kubernetes-jobs
737 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-rmi'
738 <<: *functest-kubernetes-jobs
739 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-rmi'
740 <<: *functest-kubernetes-jobs
742 name: remove dependency
744 - name: 'functest-kubernetes-{repo}-{tag}-dep-rmi'
745 <<: *functest-kubernetes-jobs
747 name: pull dependency
749 - name: 'functest-kubernetes-{repo}-{tag}-dep-pull'
750 <<: *functest-kubernetes-jobs
752 name: build opnfv/functest-kubernetes-core
754 - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-gate'
755 <<: *functest-kubernetes-jobs
757 name: build containers
759 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-gate'
760 <<: *functest-kubernetes-jobs
761 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-gate'
762 <<: *functest-kubernetes-jobs
763 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-gate'
764 <<: *functest-kubernetes-jobs
766 name: build opnfv/functest-kubernetes-smoke
768 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-gate'
769 <<: *functest-kubernetes-jobs
771 name: build opnfv/functest-kubernetes-benchmarking
773 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-gate'
774 <<: *functest-kubernetes-jobs
776 name: opnfv/functest-kubernetes-healthcheck:{tag}
778 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_quick-run'
779 <<: *functest-kubernetes-jobs
780 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-k8s_smoke-run'
781 <<: *functest-kubernetes-jobs
783 name: opnfv/functest-kubernetes-smoke:{tag}
785 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-xrally_kubernetes-run'
786 <<: *functest-kubernetes-jobs
787 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-k8s_conformance-run'
788 <<: *functest-kubernetes-jobs
789 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_network-run'
790 <<: *functest-kubernetes-jobs
791 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_network_features-run'
792 <<: *functest-kubernetes-jobs
793 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-sig_storage-run'
794 <<: *functest-kubernetes-jobs
796 name: opnfv/functest-kubernetes-security:{tag}
798 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_hunter-run'
799 <<: *functest-kubernetes-jobs
800 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench_master-run'
801 <<: *functest-kubernetes-jobs
802 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-kube_bench_node-run'
803 <<: *functest-kubernetes-jobs
805 name: opnfv/functest-kubernetes-benchmarking:{tag}
807 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-xrally_kubernetes_full-run'
808 <<: *functest-kubernetes-jobs
810 name: opnfv/functest-kubernetes-cnf:{tag}
812 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-k8s_vims-run'
813 <<: *functest-kubernetes-jobs
814 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-helm_vims-run'
815 <<: *functest-kubernetes-jobs
816 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-cnf_conformance-run'
817 <<: *functest-kubernetes-jobs
820 name: 'functest-kubernetes-review'
821 <<: *functest-kubernetes-params
823 - 'functest-kubernetes-{tag}-review'
826 name: functest-kubernetes-review
835 regex: ^functest-kubernetes-[a-z0-9.]+-review$
838 name: functest-kubernetes-tox
847 regex: ^functest-kubernetes-[a-z0-9.]+-tox$
850 name: functest-kubernetes-push-containers
854 if [ "{repo}" = "_" ]; then
855 image={container}:{tag}
856 elif [ "{port}" = "None" ]; then
857 image={repo}/{container}:{tag}
859 image={repo}:{port}/{container}:{tag}
864 name: functest-kubernetes-commit
870 name: 'functest-kubernetes-{repo}-{container}-{tag}-build'
872 - functest-kubernetes-slave:
875 - functest-kubernetes-scm:
878 - functest-kubernetes-build-containers:
879 <<: *functest-kubernetes-build-containers
881 buildargs: '{buildargs}'
882 - functest-kubernetes-push-containers:
883 <<: *functest-kubernetes-build-containers
887 name: functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-build
888 <<: *functest-kubernetes-params
889 container: functest-kubernetes-core
893 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
896 name: functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-build
897 <<: *functest-kubernetes-params
898 container: functest-kubernetes-healthcheck
900 path: docker/healthcheck
902 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
905 name: functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-build
906 <<: *functest-kubernetes-params
907 container: functest-kubernetes-cnf
911 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
914 name: functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-build
915 <<: *functest-kubernetes-params
916 container: functest-kubernetes-security
918 path: docker/security
920 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
923 name: functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-build
924 <<: *functest-kubernetes-params
925 container: functest-kubernetes-smoke
929 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
932 name: functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-build
933 <<: *functest-kubernetes-params
934 container: functest-kubernetes-benchmarking
936 path: docker/benchmarking
938 - 'functest-kubernetes-{repo}-{container}-{tag}-build'
942 name: 'functest-kubernetes-{tag}-docker'
943 project-type: multijob
945 - functest-kubernetes-commit
947 - functest-kubernetes-scm:
950 - functest-kubernetes-slave:
954 use-build-blocker: true
955 blocking-level: 'NODE'
957 - '^functest-kubernetes-{tag}-(daily|docker|review)$'
960 name: remove dependency
962 - name: 'functest-kubernetes-{repo}-{tag}-dep-rmi'
963 <<: *functest-kubernetes-jobs
965 name: pull dependency
967 - name: 'functest-kubernetes-{repo}-{tag}-dep-pull'
968 <<: *functest-kubernetes-jobs
970 name: build opnfv/functest-kubernetes-core
972 - name: 'functest-kubernetes-opnfv-functest-kubernetes-core-{tag}-build'
973 <<: *functest-kubernetes-jobs
975 name: build containers
977 - name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-{tag}-build'
978 <<: *functest-kubernetes-jobs
979 - name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-{tag}-build'
980 <<: *functest-kubernetes-jobs
981 - name: 'functest-kubernetes-opnfv-functest-kubernetes-security-{tag}-build'
982 <<: *functest-kubernetes-jobs
984 name: build opnfv/functest-kubernetes-smoke
986 - name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-{tag}-build'
987 <<: *functest-kubernetes-jobs
989 name: build opnfv/functest-kubernetes-benchmarking
991 - name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-{tag}-build'
992 <<: *functest-kubernetes-jobs
995 name: functest-kubernetes-trivy
998 apt-get update && apt-get install curl -y
999 curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b .
1000 if [ "{repo}" = "_" ]; then
1001 image={container}:{tag}
1002 elif [ "{port}" = "None" ]; then
1003 image={repo}/{container}:{tag}
1005 image={repo}:{port}/{container}:{tag}
1007 ./trivy --exit-code 1 $image
1010 name: 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1014 - functest-kubernetes-slave:
1017 - functest-kubernetes-trivy:
1018 <<: *functest-kubernetes-containers
1021 name: 'functest-kubernetes-opnfv-functest-kubernetes-core-trivy'
1022 <<: *functest-kubernetes-params
1023 container: 'functest-kubernetes-core'
1025 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1028 name: 'functest-kubernetes-opnfv-functest-kubernetes-healthcheck-trivy'
1029 <<: *functest-kubernetes-params
1030 container: 'functest-kubernetes-healthcheck'
1032 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1035 name: 'functest-kubernetes-opnfv-functest-kubernetes-cnf-trivy'
1036 <<: *functest-kubernetes-params
1037 container: 'functest-kubernetes-cnf'
1039 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1042 name: 'functest-kubernetes-opnfv-functest-kubernetes-security-trivy'
1043 <<: *functest-kubernetes-params
1044 container: 'functest-kubernetes-security'
1046 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1049 name: 'functest-kubernetes-opnfv-functest-kubernetes-smoke-trivy'
1050 <<: *functest-kubernetes-params
1051 container: 'functest-kubernetes-smoke'
1053 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1056 name: 'functest-kubernetes-opnfv-functest-kubernetes-benchmarking-trivy'
1057 <<: *functest-kubernetes-params
1058 container: 'functest-kubernetes-benchmarking'
1060 - 'functest-kubernetes-{repo}-{container}-{tag}-trivy'
1063 name: 'functest-kubernetes'
1064 <<: *functest-kubernetes-params
1066 - 'functest-kubernetes-{tag}-docker'
1069 name: functest-kubernetes-docker
1078 regex: ^functest-kubernetes-[a-z0-9.]+-docker$
1081 name: functest-kubernetes-trivy
1090 regex: (?!functest-kubernetes-pi)(?!functest-kubernetes-ng)^functest-kubernetes-[a-z-0-9.]+-trivy$