2 - functest-containers: &functest-containers
3 name: 'functest-containers'
6 container: '{container}'
9 - functest-params: &functest-params
10 name: 'functest-params'
19 DASHBOARD_URL: http://172.30.12.85
24 branch: stable/wallaby
26 DASHBOARD_URL: http://172.30.13.91
33 DASHBOARD_URL: http://172.30.13.94
40 DASHBOARD_URL: http://172.30.12.88
47 DASHBOARD_URL: http://172.30.12.83
50 - functest-jobs: &functest-jobs
52 current-parameters: true
62 name: functest-build_tag
68 name: functest-EXTERNAL_NETWORK
71 name: EXTERNAL_NETWORK
75 name: functest-VOLUME_DEVICE_NAME
78 name: VOLUME_DEVICE_NAME
82 name: functest-IMAGE_PROPERTIES
85 name: IMAGE_PROPERTIES
86 default: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
88 - functest-run-containers: &functest-run-containers
89 name: 'functest-run-containers'
90 <<: *functest-containers
92 privileged: '{privileged}'
96 DASHBOARD_URL: '{DASHBOARD_URL}'
99 name: functest-pull-containers
103 if [ "{repo}" = "_" ]; then
104 image={container}:{tag}
105 elif [ "{port}" = "None" ]; then
106 image={repo}/{container}:{tag}
108 image={repo}:{port}/{container}:{tag}
110 sudo docker pull $image
113 name: functest-run-containers
118 if [ "{volumes}" != "None" ]; then
119 for i in $(echo {volumes} | tr -d '[] ' |sed "s/,/ /g" ); do volumes="-v $i $volumes"; done
122 if [ "{env}" != "None" ]; then
123 for i in $(eval echo {env} | tr -d '[] ' |sed "s/,/ /g" ); do env="-e $i $env"; done
125 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
126 if [ "{repo}" = "_" ]; then
127 image={container}:{tag}
128 elif [ "{port}" = "None" ]; then
129 image={repo}/{container}:{tag}
131 image={repo}:{port}/{container}:{tag}
133 sudo docker run --rm \
134 --privileged={privileged} \
135 --network={network} \
138 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
139 -e S3_DST_URL=s3://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
140 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
141 -v /home/opnfv/functest/.boto:/root/.boto \
142 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
143 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
144 -e NODE_NAME=$slave \
145 -e BUILD_TAG=$BUILD_TAG \
146 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
147 -e DASHBOARD_URL={DASHBOARD_URL} \
148 $image run_tests -t {test} -p -r
151 name: functest-remove-images
155 if [ "{repo}" = "_" ]; then
156 image={container}:{tag}
157 elif [ "{port}" = "None" ]; then
158 image={repo}/{container}:{tag}
160 image={repo}:{port}/{container}:{tag}
162 sudo docker rmi $image || true
165 name: 'functest-{repo}-{container}-{tag}-pull'
170 - functest-pull-containers:
171 <<: *functest-containers
174 name: 'functest-opnfv-functest-healthcheck-pull'
176 container: 'functest-healthcheck'
178 - 'functest-{repo}-{container}-{tag}-pull'
181 name: 'functest-opnfv-functest-smoke-pull'
183 container: 'functest-smoke'
185 - 'functest-{repo}-{container}-{tag}-pull'
188 name: 'functest-opnfv-functest-smoke-cntt-pull'
190 container: 'functest-smoke-cntt'
192 - 'functest-{repo}-{container}-{tag}-pull'
195 name: 'functest-opnfv-functest-benchmarking-pull'
197 container: 'functest-benchmarking'
199 - 'functest-{repo}-{container}-{tag}-pull'
202 name: 'functest-opnfv-functest-benchmarking-cntt-pull'
204 container: 'functest-benchmarking-cntt'
206 - 'functest-{repo}-{container}-{tag}-pull'
209 name: 'functest-opnfv-functest-vnf-pull'
211 container: 'functest-vnf'
213 - 'functest-{repo}-{container}-{tag}-pull'
216 name: 'functest-{repo}-{container}-{tag}-rmi'
221 - functest-remove-images:
222 <<: *functest-containers
225 name: 'functest-opnfv-functest-healthcheck-rmi'
227 container: 'functest-healthcheck'
229 - 'functest-{repo}-{container}-{tag}-rmi'
232 name: 'functest-opnfv-functest-smoke-rmi'
234 container: 'functest-smoke'
236 - 'functest-{repo}-{container}-{tag}-rmi'
239 name: 'functest-opnfv-functest-smoke-cntt-rmi'
241 container: 'functest-smoke-cntt'
243 - 'functest-{repo}-{container}-{tag}-rmi'
246 name: 'functest-opnfv-functest-benchmarking-rmi'
248 container: 'functest-benchmarking'
250 - 'functest-{repo}-{container}-{tag}-rmi'
253 name: 'functest-opnfv-functest-benchmarking-cntt-rmi'
255 container: 'functest-benchmarking-cntt'
257 - 'functest-{repo}-{container}-{tag}-rmi'
260 name: 'functest-opnfv-functest-vnf-rmi'
262 container: 'functest-vnf'
264 - 'functest-{repo}-{container}-{tag}-rmi'
267 name: 'functest-opnfv-functest-healthcheck-{tag}-{test}-run'
271 - functest-build_tag:
273 - functest-EXTERNAL_NETWORK:
274 EXTERNAL_NETWORK: public
275 - functest-VOLUME_DEVICE_NAME:
276 VOLUME_DEVICE_NAME: sdb
277 - functest-IMAGE_PROPERTIES:
278 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
280 - functest-run-containers:
281 <<: *functest-run-containers
284 name: 'functest-opnfv-functest-healthcheck'
287 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
288 - /home/opnfv/functest/images:/home/opnfv/functest/images
290 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
291 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
292 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
293 container: 'functest-healthcheck'
311 - 'functest-opnfv-functest-healthcheck-{tag}-{test}-run'
314 name: 'functest-opnfv-functest-smoke-{tag}-{test}-run'
318 - functest-build_tag:
320 - functest-EXTERNAL_NETWORK:
321 EXTERNAL_NETWORK: public
322 - functest-VOLUME_DEVICE_NAME:
323 VOLUME_DEVICE_NAME: sdb
324 - functest-IMAGE_PROPERTIES:
325 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
327 - functest-run-containers:
328 <<: *functest-run-containers
331 name: 'functest-opnfv-functest-smoke'
334 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
335 - /home/opnfv/functest/images:/home/opnfv/functest/images
337 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
338 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
339 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
340 container: 'functest-smoke'
368 test: refstack_defcore
370 test: networking-bgpvpn
376 test: refstack_defcore
378 test: networking-bgpvpn
384 test: refstack_defcore
386 test: networking-bgpvpn
392 test: refstack_defcore
394 test: networking-bgpvpn
404 test: refstack_defcore
406 test: networking-bgpvpn
418 - 'functest-opnfv-functest-smoke-{tag}-{test}-run'
421 name: 'functest-opnfv-functest-smoke-cntt-{tag}-{test}-run'
425 - functest-build_tag:
427 - functest-EXTERNAL_NETWORK:
428 EXTERNAL_NETWORK: public
429 - functest-VOLUME_DEVICE_NAME:
430 VOLUME_DEVICE_NAME: sdb
431 - functest-IMAGE_PROPERTIES:
432 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
434 - functest-run-containers:
435 <<: *functest-run-containers
438 name: 'functest-opnfv-functest-smoke-cntt'
441 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
442 - /home/opnfv/functest/images:/home/opnfv/functest/images
444 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
445 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
446 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
447 container: 'functest-smoke-cntt'
449 - tempest_neutron_cntt
450 - tempest_cinder_cntt
451 - tempest_keystone_cntt
455 - tempest_scenario_cntt
460 - 'functest-opnfv-functest-smoke-cntt-{tag}-{test}-run'
463 name: 'functest-opnfv-functest-benchmarking-{tag}-{test}-run'
467 - functest-build_tag:
469 - functest-EXTERNAL_NETWORK:
470 EXTERNAL_NETWORK: public
471 - functest-VOLUME_DEVICE_NAME:
472 VOLUME_DEVICE_NAME: sdb
473 - functest-IMAGE_PROPERTIES:
474 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
476 - functest-run-containers:
477 <<: *functest-run-containers
480 name: 'functest-opnfv-functest-benchmarking'
483 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
484 - /home/opnfv/functest/images:/home/opnfv/functest/images
486 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
487 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
488 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
489 container: 'functest-benchmarking'
498 - 'functest-opnfv-functest-benchmarking-{tag}-{test}-run'
501 name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-{test}-run'
505 - functest-build_tag:
507 - functest-EXTERNAL_NETWORK:
508 EXTERNAL_NETWORK: public
509 - functest-VOLUME_DEVICE_NAME:
510 VOLUME_DEVICE_NAME: sdb
511 - functest-IMAGE_PROPERTIES:
512 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
514 - functest-run-containers:
515 <<: *functest-run-containers
518 name: 'functest-opnfv-functest-benchmarking-cntt'
521 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
522 - /home/opnfv/functest/images:/home/opnfv/functest/images
524 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
525 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
526 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
527 container: 'functest-benchmarking-cntt'
534 - 'functest-opnfv-functest-benchmarking-cntt-{tag}-{test}-run'
537 name: 'functest-opnfv-functest-vnf-{tag}-{test}-run'
541 - functest-build_tag:
543 - functest-EXTERNAL_NETWORK:
544 EXTERNAL_NETWORK: public
545 - functest-VOLUME_DEVICE_NAME:
546 VOLUME_DEVICE_NAME: sdb
547 - functest-IMAGE_PROPERTIES:
548 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
550 - functest-run-containers:
551 <<: *functest-run-containers
554 name: 'functest-opnfv-functest-vnf'
557 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
558 - /home/opnfv/functest/images:/home/opnfv/functest/images
560 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
561 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
562 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
563 container: 'functest-vnf'
573 - 'functest-opnfv-functest-vnf-{tag}-{test}-run'
581 if [ "{volumes}" != "None" ]; then
582 for i in $(echo {volumes} | tr -d '[] ' |sed "s/,/ /g" ); do volumes="-v $i $volumes"; done
585 if [ "{env}" != "None" ]; then
586 for i in $(eval echo {env} | tr -d '[] ' |sed "s/,/ /g" ); do env="-e $i $env"; done
588 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
589 if [ "{repo}" = "_" ]; then
590 image={container}:{tag}
591 elif [ "{port}" = "None" ]; then
592 image={repo}/{container}:{tag}
594 image={repo}:{port}/{container}:{tag}
596 sudo docker run --rm \
599 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
600 -e S3_DST_URL=s3://artifacts.opnfv.org/functest \
601 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest \
602 -v /home/opnfv/functest/.boto:/root/.boto \
603 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
604 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
605 -e BUILD_TAG=$BUILD_TAG \
606 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
610 name: 'functest-{tag}-zip'
614 - functest-build_tag:
616 - functest-EXTERNAL_NETWORK:
617 EXTERNAL_NETWORK: public
618 - functest-VOLUME_DEVICE_NAME:
619 VOLUME_DEVICE_NAME: sdb
620 - functest-IMAGE_PROPERTIES:
621 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
624 <<: *functest-containers
629 name: 'functest-{tag}-zip'
632 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
633 - /home/opnfv/functest/images:/home/opnfv/functest/images
635 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
636 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
637 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
638 container: 'functest-healthcheck'
640 - 'functest-{tag}-zip'
643 name: 'functest-{tag}-daily'
644 project-type: multijob
650 - functest-build_tag:
652 - functest-EXTERNAL_NETWORK:
653 EXTERNAL_NETWORK: public
654 - functest-VOLUME_DEVICE_NAME:
655 VOLUME_DEVICE_NAME: sdb
656 - functest-IMAGE_PROPERTIES:
657 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
658 # PyYAML and yamllint differ here
659 # see https://github.com/yaml/pyyaml/issues/234
660 # yamllint disable rule:indentation
664 - ^functest-(pi-)*{tag}-(daily|docker|review)$
665 # yamllint enable rule:indentation
668 name: remove former images
670 - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi'
672 - name: 'functest-opnfv-functest-smoke-{tag}-rmi'
674 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi'
676 - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi'
678 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi'
680 - name: 'functest-opnfv-functest-vnf-{tag}-rmi'
683 name: pull containers
685 - name: 'functest-opnfv-functest-healthcheck-{tag}-pull'
687 - name: 'functest-opnfv-functest-smoke-{tag}-pull'
689 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-pull'
691 - name: 'functest-opnfv-functest-benchmarking-{tag}-pull'
693 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-pull'
695 - name: 'functest-opnfv-functest-vnf-{tag}-pull'
698 name: opnfv/functest-healthcheck:{tag}
700 - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run'
702 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
704 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
706 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run'
708 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run'
710 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run'
712 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run'
714 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
716 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
718 - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run'
720 - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run'
722 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
724 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run'
727 name: opnfv/functest-smoke:{tag}
729 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run'
731 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run'
733 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run'
735 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run'
737 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run'
739 - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run'
741 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_defcore-run'
743 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run'
745 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run'
747 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run'
749 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run'
751 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run'
753 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run'
755 - name: 'functest-opnfv-functest-smoke-{tag}-patrole-run'
757 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run'
759 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run'
761 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run'
763 - name: 'functest-opnfv-functest-smoke-{tag}-networking-bgpvpn-run'
765 - name: 'functest-opnfv-functest-smoke-{tag}-networking-sfc-run'
767 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run'
769 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run'
771 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run'
774 name: opnfv/functest-smoke-cntt:{tag}
776 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run'
778 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run'
780 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run'
782 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run'
784 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run'
786 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run'
788 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run'
790 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run'
793 name: opnfv/functest-benchmarking:{tag}
795 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run'
797 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
799 - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run'
801 - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run'
804 name: opnfv/functest-benchmarking-cntt:{tag}
806 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run'
808 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run'
811 name: opnfv/functest-vnf:{tag}
813 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run'
815 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run'
817 - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run'
819 - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
821 - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
824 name: dump all campaign data
826 - name: 'functest-{tag}-zip'
830 name: 'functest-daily'
833 - 'functest-{tag}-daily'
845 regex: ^functest-[a-z0-9.]+-daily$
847 - functest-build-containers: &functest-build-containers
848 name: 'functest-build-containers'
849 <<: *functest-containers
852 buildargs: '{buildargs}'
856 name: functest-build-containers
860 if [ "{repo}" = "_" ]; then
861 image={container}:{tag}
862 elif [ "{port}" = "None" ]; then
863 image={repo}/{container}:{tag}
865 image={repo}:{port}/{container}:{tag}
868 if [ "{buildargs}" != "None" ]; then
869 build_args="{buildargs}"
871 if [ "{ref_arg}" != "None" ]; then
872 build_args="$build_args --build-arg {ref_arg}={ref}"
875 if [ "{from}" != "None" ]; then
876 sed -i {from} Dockerfile
878 sudo docker build $build_args \
879 --pull=false --no-cache --force-rm=true \
886 url: 'https://gerrit.opnfv.org/gerrit/functest'
887 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
891 - functest-dep: &functest-dep
892 name: 'functest-containers'
896 dependency: '{dependency}'
899 name: functest-pull-dep-images
903 if [ "_" = "_" ]; then
904 image=alpine:{dependency}
905 elif [ "None" = "None" ]; then
906 image=_/alpine:{dependency}
908 image=_:/alpine:{dependency}
910 sudo docker pull $image || true
913 name: functest-remove-dep-images
917 if [ "_" = "_" ]; then
918 image=alpine:{dependency}
919 elif [ "" = "None" ]; then
920 image=_/alpine:{dependency}
922 image=_:/alpine:{dependency}
924 sudo docker rmi $image || true
927 name: 'functest-{repo}-{tag}-dep-pull'
932 - functest-pull-dep-images:
936 name: 'functest-{repo}-{tag}-dep-pull'
939 - 'functest-{repo}-{tag}-dep-pull'
942 name: 'functest-{repo}-{tag}-dep-rmi'
947 - functest-remove-dep-images:
951 name: 'functest-{repo}-{tag}-dep-rmi'
954 - 'functest-{repo}-{tag}-dep-rmi'
961 sudo apt-get update && sudo apt-get install \
962 software-properties-common gpg -y
963 sudo add-apt-repository -y ppa:deadsnakes/ppa
964 sudo apt-get update && sudo apt-get install \
965 python3.9 python3.9-dev python3.9-distutils \
966 python3.8 python3.8-dev python3.8-distutils \
967 python3.7 python3.7-dev python3.6 python3.6-dev \
968 python python-dev python3-pip enchant -y
969 sudo pip3 install tox tox-pip-version
974 name: 'functest-{tag}-tox'
979 - functest-patchset-created:
991 - 'functest-{tag}-tox'
994 name: 'functest-{repo}-{container}-{tag}-gate'
1000 ref: $GERRIT_REFSPEC
1002 - functest-build-containers:
1003 <<: *functest-build-containers
1004 ref: $GERRIT_REFSPEC
1005 buildargs: '{buildargs}'
1008 name: functest-opnfv-functest-core-{tag}-gate
1009 <<: *functest-params
1010 container: functest-core
1014 - 'functest-{repo}-{container}-{tag}-gate'
1017 name: functest-opnfv-functest-tempest-{tag}-gate
1018 <<: *functest-params
1019 container: functest-tempest
1021 path: docker/tempest
1024 - {'tag': 'wallaby'}
1029 - 'functest-{repo}-{container}-{tag}-gate'
1032 name: functest-opnfv-functest-healthcheck-{tag}-gate
1033 <<: *functest-params
1034 container: functest-healthcheck
1036 path: docker/healthcheck
1038 - 'functest-{repo}-{container}-{tag}-gate'
1041 name: functest-opnfv-functest-smoke-{tag}-gate
1042 <<: *functest-params
1043 container: functest-smoke
1047 - 'functest-{repo}-{container}-{tag}-gate'
1050 name: functest-opnfv-functest-benchmarking-{tag}-gate
1051 <<: *functest-params
1052 container: functest-benchmarking
1054 path: docker/benchmarking
1056 - 'functest-{repo}-{container}-{tag}-gate'
1059 name: functest-opnfv-functest-vnf-{tag}-gate
1060 <<: *functest-params
1061 container: functest-vnf
1065 - 'functest-{repo}-{container}-{tag}-gate'
1068 name: functest-opnfv-functest-smoke-cntt-{tag}-gate
1069 <<: *functest-params
1070 container: functest-smoke-cntt
1072 path: docker/smoke-cntt
1074 - 'functest-{repo}-{container}-{tag}-gate'
1077 name: functest-opnfv-functest-benchmarking-cntt-{tag}-gate
1078 <<: *functest-params
1079 container: functest-benchmarking-cntt
1081 path: docker/benchmarking-cntt
1083 - 'functest-{repo}-{container}-{tag}-gate'
1086 name: functest-patchset-created
1090 - patchset-created-event
1091 - comment-added-contains-event:
1092 comment-contains-value: 'recheck'
1093 - comment-added-contains-event:
1094 comment-contains-value: 'reverify'
1096 - project-compare-type: 'ANT'
1097 project-pattern: 'functest'
1099 - branch-compare-type: 'ANT'
1100 branch-pattern: '**/{branch}'
1103 name: 'functest-{tag}-review'
1104 project-type: multijob
1106 - functest-patchset-created:
1111 - functest-build_tag:
1113 - functest-EXTERNAL_NETWORK:
1114 EXTERNAL_NETWORK: public
1115 - functest-VOLUME_DEVICE_NAME:
1116 VOLUME_DEVICE_NAME: sdb
1117 - functest-IMAGE_PROPERTIES:
1118 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
1119 # PyYAML and yamllint differ here
1120 # see https://github.com/yaml/pyyaml/issues/234
1121 # yamllint disable rule:indentation
1125 - ^functest-(pi-)*{tag}-(daily|docker|review)$
1126 # yamllint enable rule:indentation
1129 name: remove former images
1131 - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi'
1133 - name: 'functest-opnfv-functest-smoke-{tag}-rmi'
1135 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi'
1137 - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi'
1139 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi'
1141 - name: 'functest-opnfv-functest-vnf-{tag}-rmi'
1144 name: remove dependency
1146 - name: 'functest-{repo}-{tag}-dep-rmi'
1149 name: pull dependency
1151 - name: 'functest-{repo}-{tag}-dep-pull'
1154 name: build opnfv/functest-core
1156 - name: 'functest-opnfv-functest-core-{tag}-gate'
1159 name: build opnfv/functest-tempest
1161 - name: 'functest-opnfv-functest-tempest-{tag}-gate'
1164 name: build containers
1166 - name: 'functest-opnfv-functest-healthcheck-{tag}-gate'
1168 - name: 'functest-opnfv-functest-smoke-{tag}-gate'
1170 - name: 'functest-opnfv-functest-benchmarking-{tag}-gate'
1172 - name: 'functest-opnfv-functest-vnf-{tag}-gate'
1175 name: build cntt containers
1177 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-gate'
1179 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-gate'
1182 name: opnfv/functest-healthcheck:{tag}
1184 - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run'
1186 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
1188 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
1190 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run'
1192 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run'
1194 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run'
1196 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run'
1198 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
1200 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
1202 - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run'
1204 - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run'
1206 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
1208 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run'
1211 name: opnfv/functest-smoke:{tag}
1213 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run'
1215 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run'
1217 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run'
1219 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run'
1221 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run'
1223 - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run'
1225 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_defcore-run'
1227 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run'
1229 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run'
1231 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run'
1233 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run'
1235 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run'
1237 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run'
1239 - name: 'functest-opnfv-functest-smoke-{tag}-patrole-run'
1241 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run'
1243 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run'
1245 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run'
1247 - name: 'functest-opnfv-functest-smoke-{tag}-networking-bgpvpn-run'
1249 - name: 'functest-opnfv-functest-smoke-{tag}-networking-sfc-run'
1251 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run'
1253 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run'
1255 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run'
1258 name: opnfv/functest-smoke-cntt:{tag}
1260 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run'
1262 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run'
1264 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run'
1266 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run'
1268 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run'
1270 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run'
1272 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run'
1274 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run'
1277 name: opnfv/functest-benchmarking:{tag}
1279 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run'
1281 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
1283 - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run'
1285 - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run'
1288 name: opnfv/functest-benchmarking-cntt:{tag}
1290 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run'
1292 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run'
1295 name: opnfv/functest-vnf:{tag}
1297 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run'
1299 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run'
1301 - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run'
1303 - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
1305 - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
1309 name: 'functest-review'
1310 <<: *functest-params
1312 - 'functest-{tag}-review'
1315 name: functest-review
1324 regex: ^functest-[a-z0-9.]+-review$
1336 regex: ^functest-[a-z0-9.]+-tox$
1339 name: functest-push-containers
1343 if [ "{repo}" = "_" ]; then
1344 image={container}:{tag}
1345 elif [ "{port}" = "None" ]; then
1346 image={repo}/{container}:{tag}
1348 image={repo}:{port}/{container}:{tag}
1350 sudo docker push $image
1353 name: functest-commit
1356 cron: "*/30 * * * *"
1359 name: 'functest-{repo}-{container}-{tag}-build'
1367 - functest-build-containers:
1368 <<: *functest-build-containers
1370 buildargs: '{buildargs}'
1371 - functest-push-containers:
1372 <<: *functest-build-containers
1376 name: functest-opnfv-functest-core-{tag}-build
1377 <<: *functest-params
1378 container: functest-core
1382 - 'functest-{repo}-{container}-{tag}-build'
1385 name: functest-opnfv-functest-tempest-{tag}-build
1386 <<: *functest-params
1387 container: functest-tempest
1389 path: docker/tempest
1392 - {'tag': 'wallaby'}
1397 - 'functest-{repo}-{container}-{tag}-build'
1400 name: functest-opnfv-functest-healthcheck-{tag}-build
1401 <<: *functest-params
1402 container: functest-healthcheck
1404 path: docker/healthcheck
1406 - 'functest-{repo}-{container}-{tag}-build'
1409 name: functest-opnfv-functest-smoke-{tag}-build
1410 <<: *functest-params
1411 container: functest-smoke
1415 - 'functest-{repo}-{container}-{tag}-build'
1418 name: functest-opnfv-functest-benchmarking-{tag}-build
1419 <<: *functest-params
1420 container: functest-benchmarking
1422 path: docker/benchmarking
1424 - 'functest-{repo}-{container}-{tag}-build'
1427 name: functest-opnfv-functest-vnf-{tag}-build
1428 <<: *functest-params
1429 container: functest-vnf
1433 - 'functest-{repo}-{container}-{tag}-build'
1436 name: functest-opnfv-functest-smoke-cntt-{tag}-build
1437 <<: *functest-params
1438 container: functest-smoke-cntt
1440 path: docker/smoke-cntt
1442 - 'functest-{repo}-{container}-{tag}-build'
1445 name: functest-opnfv-functest-benchmarking-cntt-{tag}-build
1446 <<: *functest-params
1447 container: functest-benchmarking-cntt
1449 path: docker/benchmarking-cntt
1451 - 'functest-{repo}-{container}-{tag}-build'
1454 name: 'functest-{tag}-docker'
1455 project-type: multijob
1464 # PyYAML and yamllint differ here
1465 # see https://github.com/yaml/pyyaml/issues/234
1466 # yamllint disable rule:indentation
1470 - ^functest-(pi-)*{tag}-(daily|docker|review)$
1471 # yamllint enable rule:indentation
1474 name: remove dependency
1476 - name: 'functest-{repo}-{tag}-dep-rmi'
1479 name: pull dependency
1481 - name: 'functest-{repo}-{tag}-dep-pull'
1484 name: build opnfv/functest-core
1486 - name: 'functest-opnfv-functest-core-{tag}-build'
1489 name: build opnfv/functest-tempest
1491 - name: 'functest-opnfv-functest-tempest-{tag}-build'
1494 name: build containers
1496 - name: 'functest-opnfv-functest-healthcheck-{tag}-build'
1498 - name: 'functest-opnfv-functest-smoke-{tag}-build'
1500 - name: 'functest-opnfv-functest-benchmarking-{tag}-build'
1502 - name: 'functest-opnfv-functest-vnf-{tag}-build'
1505 name: build cntt containers
1507 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-build'
1509 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-build'
1513 name: functest-trivy
1516 sudo apt-get update && sudo apt-get install curl -y
1518 curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b .
1519 if [ "{repo}" = "_" ]; then
1520 image={container}:{tag}
1521 elif [ "{port}" = "None" ]; then
1522 image={repo}/{container}:{tag}
1524 image={repo}:{port}/{container}:{tag}
1526 ./trivy --exit-code 1 $image
1529 name: 'functest-{repo}-{container}-{tag}-trivy'
1537 <<: *functest-containers
1540 name: 'functest-opnfv-functest-core-trivy'
1541 <<: *functest-params
1542 container: 'functest-core'
1544 - 'functest-{repo}-{container}-{tag}-trivy'
1547 name: 'functest-opnfv-functest-tempest-trivy'
1548 <<: *functest-params
1549 container: 'functest-tempest'
1551 - 'functest-{repo}-{container}-{tag}-trivy'
1554 name: 'functest-opnfv-functest-healthcheck-trivy'
1555 <<: *functest-params
1556 container: 'functest-healthcheck'
1558 - 'functest-{repo}-{container}-{tag}-trivy'
1561 name: 'functest-opnfv-functest-smoke-trivy'
1562 <<: *functest-params
1563 container: 'functest-smoke'
1565 - 'functest-{repo}-{container}-{tag}-trivy'
1568 name: 'functest-opnfv-functest-benchmarking-trivy'
1569 <<: *functest-params
1570 container: 'functest-benchmarking'
1572 - 'functest-{repo}-{container}-{tag}-trivy'
1575 name: 'functest-opnfv-functest-vnf-trivy'
1576 <<: *functest-params
1577 container: 'functest-vnf'
1579 - 'functest-{repo}-{container}-{tag}-trivy'
1582 name: 'functest-opnfv-functest-smoke-cntt-trivy'
1583 <<: *functest-params
1584 container: 'functest-smoke-cntt'
1586 - 'functest-{repo}-{container}-{tag}-trivy'
1589 name: 'functest-opnfv-functest-benchmarking-cntt-trivy'
1590 <<: *functest-params
1591 container: 'functest-benchmarking-cntt'
1593 - 'functest-{repo}-{container}-{tag}-trivy'
1597 <<: *functest-params
1599 - 'functest-{tag}-docker'
1602 name: functest-docker
1611 regex: ^functest-[a-z0-9.]+-docker$
1614 name: functest-trivy
1623 regex: (?!functest-kubernetes)(?!functest-pi)^functest-[a-z-0-9.]+-trivy$