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" ); \
120 do volumes="-v $i $volumes"; done
123 if [ "{env}" != "None" ]; then
124 for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
125 do env="-e $i $env"; done
127 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
128 if [ "{repo}" = "_" ]; then
129 image={container}:{tag}
130 elif [ "{port}" = "None" ]; then
131 image={repo}/{container}:{tag}
133 image={repo}:{port}/{container}:{tag}
135 sudo docker run --rm \
136 --privileged={privileged} \
137 --network={network} \
140 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
141 -e S3_DST_URL=s3://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
142 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
143 -v /home/opnfv/functest/.boto:/root/.boto \
144 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
145 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
146 -e NODE_NAME=$slave \
147 -e BUILD_TAG=$BUILD_TAG \
148 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
149 -e DASHBOARD_URL={DASHBOARD_URL} \
150 $image run_tests -t {test} -p -r
153 name: functest-remove-images
157 if [ "{repo}" = "_" ]; then
158 image={container}:{tag}
159 elif [ "{port}" = "None" ]; then
160 image={repo}/{container}:{tag}
162 image={repo}:{port}/{container}:{tag}
164 sudo docker rmi $image || true
167 name: 'functest-{repo}-{container}-{tag}-pull'
172 - functest-pull-containers:
173 <<: *functest-containers
176 name: 'functest-opnfv-functest-healthcheck-pull'
178 container: 'functest-healthcheck'
180 - 'functest-{repo}-{container}-{tag}-pull'
183 name: 'functest-opnfv-functest-smoke-pull'
185 container: 'functest-smoke'
187 - 'functest-{repo}-{container}-{tag}-pull'
190 name: 'functest-opnfv-functest-smoke-cntt-pull'
192 container: 'functest-smoke-cntt'
194 - 'functest-{repo}-{container}-{tag}-pull'
197 name: 'functest-opnfv-functest-benchmarking-pull'
199 container: 'functest-benchmarking'
201 - 'functest-{repo}-{container}-{tag}-pull'
204 name: 'functest-opnfv-functest-benchmarking-cntt-pull'
206 container: 'functest-benchmarking-cntt'
208 - 'functest-{repo}-{container}-{tag}-pull'
211 name: 'functest-opnfv-functest-vnf-pull'
213 container: 'functest-vnf'
215 - 'functest-{repo}-{container}-{tag}-pull'
218 name: 'functest-{repo}-{container}-{tag}-rmi'
223 - functest-remove-images:
224 <<: *functest-containers
227 name: 'functest-opnfv-functest-healthcheck-rmi'
229 container: 'functest-healthcheck'
231 - 'functest-{repo}-{container}-{tag}-rmi'
234 name: 'functest-opnfv-functest-smoke-rmi'
236 container: 'functest-smoke'
238 - 'functest-{repo}-{container}-{tag}-rmi'
241 name: 'functest-opnfv-functest-smoke-cntt-rmi'
243 container: 'functest-smoke-cntt'
245 - 'functest-{repo}-{container}-{tag}-rmi'
248 name: 'functest-opnfv-functest-benchmarking-rmi'
250 container: 'functest-benchmarking'
252 - 'functest-{repo}-{container}-{tag}-rmi'
255 name: 'functest-opnfv-functest-benchmarking-cntt-rmi'
257 container: 'functest-benchmarking-cntt'
259 - 'functest-{repo}-{container}-{tag}-rmi'
262 name: 'functest-opnfv-functest-vnf-rmi'
264 container: 'functest-vnf'
266 - 'functest-{repo}-{container}-{tag}-rmi'
269 name: 'functest-opnfv-functest-healthcheck-{tag}-{test}-run'
273 - functest-build_tag:
275 - functest-EXTERNAL_NETWORK:
276 EXTERNAL_NETWORK: public
277 - functest-VOLUME_DEVICE_NAME:
278 VOLUME_DEVICE_NAME: sdb
279 - functest-IMAGE_PROPERTIES:
280 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
282 - functest-run-containers:
283 <<: *functest-run-containers
286 name: 'functest-opnfv-functest-healthcheck'
289 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
290 - /home/opnfv/functest/images:/home/opnfv/functest/images
292 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
293 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
294 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
295 container: 'functest-healthcheck'
313 - 'functest-opnfv-functest-healthcheck-{tag}-{test}-run'
316 name: 'functest-opnfv-functest-smoke-{tag}-{test}-run'
320 - functest-build_tag:
322 - functest-EXTERNAL_NETWORK:
323 EXTERNAL_NETWORK: public
324 - functest-VOLUME_DEVICE_NAME:
325 VOLUME_DEVICE_NAME: sdb
326 - functest-IMAGE_PROPERTIES:
327 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
329 - functest-run-containers:
330 <<: *functest-run-containers
333 name: 'functest-opnfv-functest-smoke'
336 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
337 - /home/opnfv/functest/images:/home/opnfv/functest/images
339 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
340 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
341 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
342 container: 'functest-smoke'
370 test: refstack_defcore
372 test: networking-bgpvpn
378 test: refstack_defcore
380 test: networking-bgpvpn
386 test: refstack_defcore
388 test: networking-bgpvpn
394 test: refstack_defcore
396 test: networking-bgpvpn
406 test: refstack_defcore
408 test: networking-bgpvpn
420 - 'functest-opnfv-functest-smoke-{tag}-{test}-run'
423 name: 'functest-opnfv-functest-smoke-cntt-{tag}-{test}-run'
427 - functest-build_tag:
429 - functest-EXTERNAL_NETWORK:
430 EXTERNAL_NETWORK: public
431 - functest-VOLUME_DEVICE_NAME:
432 VOLUME_DEVICE_NAME: sdb
433 - functest-IMAGE_PROPERTIES:
434 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
436 - functest-run-containers:
437 <<: *functest-run-containers
440 name: 'functest-opnfv-functest-smoke-cntt'
443 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
444 - /home/opnfv/functest/images:/home/opnfv/functest/images
446 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
447 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
448 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
449 container: 'functest-smoke-cntt'
451 - tempest_neutron_cntt
452 - tempest_cinder_cntt
453 - tempest_keystone_cntt
457 - tempest_scenario_cntt
462 - 'functest-opnfv-functest-smoke-cntt-{tag}-{test}-run'
465 name: 'functest-opnfv-functest-benchmarking-{tag}-{test}-run'
469 - functest-build_tag:
471 - functest-EXTERNAL_NETWORK:
472 EXTERNAL_NETWORK: public
473 - functest-VOLUME_DEVICE_NAME:
474 VOLUME_DEVICE_NAME: sdb
475 - functest-IMAGE_PROPERTIES:
476 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
478 - functest-run-containers:
479 <<: *functest-run-containers
482 name: 'functest-opnfv-functest-benchmarking'
485 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
486 - /home/opnfv/functest/images:/home/opnfv/functest/images
488 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
489 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
490 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
491 container: 'functest-benchmarking'
500 - 'functest-opnfv-functest-benchmarking-{tag}-{test}-run'
503 name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-{test}-run'
507 - functest-build_tag:
509 - functest-EXTERNAL_NETWORK:
510 EXTERNAL_NETWORK: public
511 - functest-VOLUME_DEVICE_NAME:
512 VOLUME_DEVICE_NAME: sdb
513 - functest-IMAGE_PROPERTIES:
514 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
516 - functest-run-containers:
517 <<: *functest-run-containers
520 name: 'functest-opnfv-functest-benchmarking-cntt'
523 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
524 - /home/opnfv/functest/images:/home/opnfv/functest/images
526 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
527 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
528 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
529 container: 'functest-benchmarking-cntt'
536 - 'functest-opnfv-functest-benchmarking-cntt-{tag}-{test}-run'
539 name: 'functest-opnfv-functest-vnf-{tag}-{test}-run'
543 - functest-build_tag:
545 - functest-EXTERNAL_NETWORK:
546 EXTERNAL_NETWORK: public
547 - functest-VOLUME_DEVICE_NAME:
548 VOLUME_DEVICE_NAME: sdb
549 - functest-IMAGE_PROPERTIES:
550 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
552 - functest-run-containers:
553 <<: *functest-run-containers
556 name: 'functest-opnfv-functest-vnf'
559 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
560 - /home/opnfv/functest/images:/home/opnfv/functest/images
562 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
563 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
564 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
565 container: 'functest-vnf'
575 - 'functest-opnfv-functest-vnf-{tag}-{test}-run'
583 if [ "{volumes}" != "None" ]; then
584 for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
585 do volumes="-v $i $volumes"; done
588 if [ "{env}" != "None" ]; then
589 for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
590 do env="-e $i $env"; done
592 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
593 if [ "{repo}" = "_" ]; then
594 image={container}:{tag}
595 elif [ "{port}" = "None" ]; then
596 image={repo}/{container}:{tag}
598 image={repo}:{port}/{container}:{tag}
600 sudo docker run --rm \
603 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
604 -e S3_DST_URL=s3://artifacts.opnfv.org/functest \
605 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest \
606 -v /home/opnfv/functest/.boto:/root/.boto \
607 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
608 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
609 -e BUILD_TAG=$BUILD_TAG \
610 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
614 name: 'functest-{tag}-zip'
618 - functest-build_tag:
620 - functest-EXTERNAL_NETWORK:
621 EXTERNAL_NETWORK: public
622 - functest-VOLUME_DEVICE_NAME:
623 VOLUME_DEVICE_NAME: sdb
624 - functest-IMAGE_PROPERTIES:
625 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
628 <<: *functest-containers
633 name: 'functest-{tag}-zip'
636 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
637 - /home/opnfv/functest/images:/home/opnfv/functest/images
639 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
640 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
641 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
642 container: 'functest-healthcheck'
644 - 'functest-{tag}-zip'
647 name: 'functest-{tag}-daily'
648 project-type: multijob
654 - functest-build_tag:
656 - functest-EXTERNAL_NETWORK:
657 EXTERNAL_NETWORK: public
658 - functest-VOLUME_DEVICE_NAME:
659 VOLUME_DEVICE_NAME: sdb
660 - functest-IMAGE_PROPERTIES:
661 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
662 # PyYAML and yamllint differ here
663 # see https://github.com/yaml/pyyaml/issues/234
664 # yamllint disable rule:indentation
668 - ^functest-(pi-)*{tag}-(daily|docker|review)$
669 # yamllint enable rule:indentation
672 name: remove former images
674 - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi'
676 - name: 'functest-opnfv-functest-smoke-{tag}-rmi'
678 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi'
680 - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi'
682 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi'
684 - name: 'functest-opnfv-functest-vnf-{tag}-rmi'
687 name: pull containers
689 - name: 'functest-opnfv-functest-healthcheck-{tag}-pull'
691 - name: 'functest-opnfv-functest-smoke-{tag}-pull'
693 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-pull'
695 - name: 'functest-opnfv-functest-benchmarking-{tag}-pull'
697 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-pull'
699 - name: 'functest-opnfv-functest-vnf-{tag}-pull'
702 name: opnfv/functest-healthcheck:{tag}
704 - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run'
706 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
708 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
710 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run'
712 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run'
714 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run'
716 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run'
718 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
720 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
722 - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run'
724 - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run'
726 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
728 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run'
731 name: opnfv/functest-smoke:{tag}
733 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run'
735 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run'
737 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run'
739 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run'
741 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run'
743 - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run'
745 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_defcore-run'
747 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run'
749 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run'
751 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run'
753 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run'
755 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run'
757 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run'
759 - name: 'functest-opnfv-functest-smoke-{tag}-patrole-run'
761 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run'
763 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run'
765 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run'
767 - name: 'functest-opnfv-functest-smoke-{tag}-networking-bgpvpn-run'
769 - name: 'functest-opnfv-functest-smoke-{tag}-networking-sfc-run'
771 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run'
773 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run'
775 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run'
778 name: opnfv/functest-smoke-cntt:{tag}
780 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run'
782 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run'
784 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run'
786 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run'
788 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run'
790 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run'
792 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run'
794 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run'
797 name: opnfv/functest-benchmarking:{tag}
799 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run'
801 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
803 - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run'
805 - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run'
808 name: opnfv/functest-benchmarking-cntt:{tag}
810 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run'
812 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run'
815 name: opnfv/functest-vnf:{tag}
817 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run'
819 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run'
821 - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run'
823 - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
825 - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
828 name: dump all campaign data
830 - name: 'functest-{tag}-zip'
834 name: 'functest-daily'
837 - 'functest-{tag}-daily'
849 regex: ^functest-[a-z0-9.]+-daily$
851 - functest-build-containers: &functest-build-containers
852 name: 'functest-build-containers'
853 <<: *functest-containers
856 build_args: '{build_args}'
860 name: functest-build-containers
864 if [ "{repo}" = "_" ]; then
865 image={container}:{tag}
866 elif [ "{port}" = "None" ]; then
867 image={repo}/{container}:{tag}
869 image={repo}:{port}/{container}:{tag}
872 if [ "{build_args}" != "None" ]; then
873 for i in $(echo {build_args} | tr -d '[]' |sed "s/, / /g" ); \
874 do build_args="--build-arg $i $build_args"; done
876 if [ "{ref_arg}" != "None" ]; then
877 build_args="$build_args --build-arg {ref_arg}={ref}"
880 if [ "{from}" != "None" ]; then
881 sed -i {from} Dockerfile
883 sudo docker build $build_args \
884 --pull=false --no-cache --force-rm=true \
891 url: 'https://gerrit.opnfv.org/gerrit/functest'
892 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
896 - functest-dep: &functest-dep
897 name: 'functest-containers'
901 dependency: '{dependency}'
904 name: functest-pull-dep-images
908 if [ "_" = "_" ]; then
909 image=alpine:{dependency}
910 elif [ "None" = "None" ]; then
911 image=_/alpine:{dependency}
913 image=_:/alpine:{dependency}
915 sudo docker pull $image || true
918 name: functest-remove-dep-images
922 if [ "_" = "_" ]; then
923 image=alpine:{dependency}
924 elif [ "" = "None" ]; then
925 image=_/alpine:{dependency}
927 image=_:/alpine:{dependency}
929 sudo docker rmi $image || true
932 name: 'functest-{repo}-{tag}-dep-pull'
937 - functest-pull-dep-images:
941 name: 'functest-{repo}-{tag}-dep-pull'
944 - 'functest-{repo}-{tag}-dep-pull'
947 name: 'functest-{repo}-{tag}-dep-rmi'
952 - functest-remove-dep-images:
956 name: 'functest-{repo}-{tag}-dep-rmi'
959 - 'functest-{repo}-{tag}-dep-rmi'
966 sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive \
967 apt-get install software-properties-common gpg -y
968 sudo add-apt-repository -y ppa:deadsnakes/ppa
969 sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive \
971 python3.9 python3.9-dev python3.9-distutils \
972 python3.8 python3.8-dev python3.8-distutils \
973 python3.7 python3.7-dev python3.6 python3.6-dev \
974 python python-dev python3-pip enchant -y
975 sudo pip3 install tox tox-pip-version
980 name: 'functest-{tag}-tox'
985 - functest-patchset-created:
997 - 'functest-{tag}-tox'
1000 name: 'functest-{repo}-{container}-{tag}-gate'
1006 ref: $GERRIT_REFSPEC
1008 - functest-build-containers:
1009 <<: *functest-build-containers
1010 ref: $GERRIT_REFSPEC
1011 build_args: '{build_args}'
1014 name: functest-opnfv-functest-core-{tag}-gate
1015 <<: *functest-params
1016 container: functest-core
1020 - 'functest-{repo}-{container}-{tag}-gate'
1023 name: functest-opnfv-functest-tempest-{tag}-gate
1024 <<: *functest-params
1025 container: functest-tempest
1027 path: docker/tempest
1030 - {'tag': 'wallaby'}
1035 - 'functest-{repo}-{container}-{tag}-gate'
1038 name: functest-opnfv-functest-healthcheck-{tag}-gate
1039 <<: *functest-params
1040 container: functest-healthcheck
1042 path: docker/healthcheck
1044 - 'functest-{repo}-{container}-{tag}-gate'
1047 name: functest-opnfv-functest-smoke-{tag}-gate
1048 <<: *functest-params
1049 container: functest-smoke
1053 - 'functest-{repo}-{container}-{tag}-gate'
1056 name: functest-opnfv-functest-benchmarking-{tag}-gate
1057 <<: *functest-params
1058 container: functest-benchmarking
1060 path: docker/benchmarking
1062 - 'functest-{repo}-{container}-{tag}-gate'
1065 name: functest-opnfv-functest-vnf-{tag}-gate
1066 <<: *functest-params
1067 container: functest-vnf
1071 - 'functest-{repo}-{container}-{tag}-gate'
1074 name: functest-opnfv-functest-smoke-cntt-{tag}-gate
1075 <<: *functest-params
1076 container: functest-smoke-cntt
1078 path: docker/smoke-cntt
1080 - 'functest-{repo}-{container}-{tag}-gate'
1083 name: functest-opnfv-functest-benchmarking-cntt-{tag}-gate
1084 <<: *functest-params
1085 container: functest-benchmarking-cntt
1087 path: docker/benchmarking-cntt
1089 - 'functest-{repo}-{container}-{tag}-gate'
1092 name: functest-patchset-created
1096 - patchset-created-event
1097 - comment-added-contains-event:
1098 comment-contains-value: 'recheck'
1099 - comment-added-contains-event:
1100 comment-contains-value: 'reverify'
1102 - project-compare-type: 'ANT'
1103 project-pattern: 'functest'
1105 - branch-compare-type: 'ANT'
1106 branch-pattern: '**/{branch}'
1109 name: 'functest-{tag}-review'
1110 project-type: multijob
1112 - functest-patchset-created:
1117 - functest-build_tag:
1119 - functest-EXTERNAL_NETWORK:
1120 EXTERNAL_NETWORK: public
1121 - functest-VOLUME_DEVICE_NAME:
1122 VOLUME_DEVICE_NAME: sdb
1123 - functest-IMAGE_PROPERTIES:
1124 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
1125 # PyYAML and yamllint differ here
1126 # see https://github.com/yaml/pyyaml/issues/234
1127 # yamllint disable rule:indentation
1131 - ^functest-(pi-)*{tag}-(daily|docker|review)$
1132 # yamllint enable rule:indentation
1135 name: remove former images
1137 - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi'
1139 - name: 'functest-opnfv-functest-smoke-{tag}-rmi'
1141 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi'
1143 - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi'
1145 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi'
1147 - name: 'functest-opnfv-functest-vnf-{tag}-rmi'
1150 name: remove dependency
1152 - name: 'functest-{repo}-{tag}-dep-rmi'
1155 name: pull dependency
1157 - name: 'functest-{repo}-{tag}-dep-pull'
1160 name: build opnfv/functest-core
1162 - name: 'functest-opnfv-functest-core-{tag}-gate'
1165 name: build opnfv/functest-tempest
1167 - name: 'functest-opnfv-functest-tempest-{tag}-gate'
1170 name: build containers
1172 - name: 'functest-opnfv-functest-healthcheck-{tag}-gate'
1174 - name: 'functest-opnfv-functest-smoke-{tag}-gate'
1176 - name: 'functest-opnfv-functest-benchmarking-{tag}-gate'
1178 - name: 'functest-opnfv-functest-vnf-{tag}-gate'
1181 name: build cntt containers
1183 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-gate'
1185 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-gate'
1188 name: opnfv/functest-healthcheck:{tag}
1190 - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run'
1192 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
1194 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
1196 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run'
1198 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run'
1200 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run'
1202 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run'
1204 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
1206 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
1208 - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run'
1210 - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run'
1212 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
1214 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run'
1217 name: opnfv/functest-smoke:{tag}
1219 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run'
1221 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run'
1223 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run'
1225 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run'
1227 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run'
1229 - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run'
1231 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_defcore-run'
1233 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run'
1235 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run'
1237 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run'
1239 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run'
1241 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run'
1243 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run'
1245 - name: 'functest-opnfv-functest-smoke-{tag}-patrole-run'
1247 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run'
1249 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run'
1251 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run'
1253 - name: 'functest-opnfv-functest-smoke-{tag}-networking-bgpvpn-run'
1255 - name: 'functest-opnfv-functest-smoke-{tag}-networking-sfc-run'
1257 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run'
1259 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run'
1261 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run'
1264 name: opnfv/functest-smoke-cntt:{tag}
1266 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run'
1268 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run'
1270 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run'
1272 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run'
1274 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run'
1276 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run'
1278 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run'
1280 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run'
1283 name: opnfv/functest-benchmarking:{tag}
1285 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run'
1287 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
1289 - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run'
1291 - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run'
1294 name: opnfv/functest-benchmarking-cntt:{tag}
1296 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run'
1298 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run'
1301 name: opnfv/functest-vnf:{tag}
1303 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run'
1305 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run'
1307 - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run'
1309 - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
1311 - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
1315 name: 'functest-review'
1316 <<: *functest-params
1318 - 'functest-{tag}-review'
1321 name: functest-review
1330 regex: ^functest-[a-z0-9.]+-review$
1342 regex: ^functest-[a-z0-9.]+-tox$
1345 name: functest-push-containers
1349 if [ "{repo}" = "_" ]; then
1350 image={container}:{tag}
1351 elif [ "{port}" = "None" ]; then
1352 image={repo}/{container}:{tag}
1354 image={repo}:{port}/{container}:{tag}
1356 sudo docker push $image
1359 name: functest-commit
1362 cron: "*/30 * * * *"
1365 name: 'functest-{repo}-{container}-{tag}-build'
1373 - functest-build-containers:
1374 <<: *functest-build-containers
1376 build_args: '{build_args}'
1377 - functest-push-containers:
1378 <<: *functest-build-containers
1382 name: functest-opnfv-functest-core-{tag}-build
1383 <<: *functest-params
1384 container: functest-core
1388 - 'functest-{repo}-{container}-{tag}-build'
1391 name: functest-opnfv-functest-tempest-{tag}-build
1392 <<: *functest-params
1393 container: functest-tempest
1395 path: docker/tempest
1398 - {'tag': 'wallaby'}
1403 - 'functest-{repo}-{container}-{tag}-build'
1406 name: functest-opnfv-functest-healthcheck-{tag}-build
1407 <<: *functest-params
1408 container: functest-healthcheck
1410 path: docker/healthcheck
1412 - 'functest-{repo}-{container}-{tag}-build'
1415 name: functest-opnfv-functest-smoke-{tag}-build
1416 <<: *functest-params
1417 container: functest-smoke
1421 - 'functest-{repo}-{container}-{tag}-build'
1424 name: functest-opnfv-functest-benchmarking-{tag}-build
1425 <<: *functest-params
1426 container: functest-benchmarking
1428 path: docker/benchmarking
1430 - 'functest-{repo}-{container}-{tag}-build'
1433 name: functest-opnfv-functest-vnf-{tag}-build
1434 <<: *functest-params
1435 container: functest-vnf
1439 - 'functest-{repo}-{container}-{tag}-build'
1442 name: functest-opnfv-functest-smoke-cntt-{tag}-build
1443 <<: *functest-params
1444 container: functest-smoke-cntt
1446 path: docker/smoke-cntt
1448 - 'functest-{repo}-{container}-{tag}-build'
1451 name: functest-opnfv-functest-benchmarking-cntt-{tag}-build
1452 <<: *functest-params
1453 container: functest-benchmarking-cntt
1455 path: docker/benchmarking-cntt
1457 - 'functest-{repo}-{container}-{tag}-build'
1460 name: 'functest-{tag}-docker'
1461 project-type: multijob
1470 # PyYAML and yamllint differ here
1471 # see https://github.com/yaml/pyyaml/issues/234
1472 # yamllint disable rule:indentation
1476 - ^functest-(pi-)*{tag}-(daily|docker|review)$
1477 # yamllint enable rule:indentation
1480 name: remove dependency
1482 - name: 'functest-{repo}-{tag}-dep-rmi'
1485 name: pull dependency
1487 - name: 'functest-{repo}-{tag}-dep-pull'
1490 name: build opnfv/functest-core
1492 - name: 'functest-opnfv-functest-core-{tag}-build'
1495 name: build opnfv/functest-tempest
1497 - name: 'functest-opnfv-functest-tempest-{tag}-build'
1500 name: build containers
1502 - name: 'functest-opnfv-functest-healthcheck-{tag}-build'
1504 - name: 'functest-opnfv-functest-smoke-{tag}-build'
1506 - name: 'functest-opnfv-functest-benchmarking-{tag}-build'
1508 - name: 'functest-opnfv-functest-vnf-{tag}-build'
1511 name: build cntt containers
1513 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-build'
1515 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-build'
1519 name: functest-trivy
1522 sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive \
1523 apt-get install curl -y
1525 curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b .
1526 if [ "{repo}" = "_" ]; then
1527 image={container}:{tag}
1528 elif [ "{port}" = "None" ]; then
1529 image={repo}/{container}:{tag}
1531 image={repo}:{port}/{container}:{tag}
1533 ./trivy --exit-code 1 $image
1536 name: 'functest-{repo}-{container}-{tag}-trivy'
1544 <<: *functest-containers
1547 name: 'functest-opnfv-functest-core-trivy'
1548 <<: *functest-params
1549 container: 'functest-core'
1551 - 'functest-{repo}-{container}-{tag}-trivy'
1554 name: 'functest-opnfv-functest-tempest-trivy'
1555 <<: *functest-params
1556 container: 'functest-tempest'
1558 - 'functest-{repo}-{container}-{tag}-trivy'
1561 name: 'functest-opnfv-functest-healthcheck-trivy'
1562 <<: *functest-params
1563 container: 'functest-healthcheck'
1565 - 'functest-{repo}-{container}-{tag}-trivy'
1568 name: 'functest-opnfv-functest-smoke-trivy'
1569 <<: *functest-params
1570 container: 'functest-smoke'
1572 - 'functest-{repo}-{container}-{tag}-trivy'
1575 name: 'functest-opnfv-functest-benchmarking-trivy'
1576 <<: *functest-params
1577 container: 'functest-benchmarking'
1579 - 'functest-{repo}-{container}-{tag}-trivy'
1582 name: 'functest-opnfv-functest-vnf-trivy'
1583 <<: *functest-params
1584 container: 'functest-vnf'
1586 - 'functest-{repo}-{container}-{tag}-trivy'
1589 name: 'functest-opnfv-functest-smoke-cntt-trivy'
1590 <<: *functest-params
1591 container: 'functest-smoke-cntt'
1593 - 'functest-{repo}-{container}-{tag}-trivy'
1596 name: 'functest-opnfv-functest-benchmarking-cntt-trivy'
1597 <<: *functest-params
1598 container: 'functest-benchmarking-cntt'
1600 - 'functest-{repo}-{container}-{tag}-trivy'
1604 <<: *functest-params
1606 - 'functest-{tag}-docker'
1609 name: functest-docker
1618 regex: ^functest-[a-z0-9.]+-docker$
1621 name: functest-trivy
1630 regex: (?!functest-kubernetes)(?!functest-pi)^functest-[a-z-0-9.]+-trivy$