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'
580 volumes=; for i in $(echo {volumes} | tr -d '[] ' |sed "s/,/ /g" ); do volumes="-v $i $volumes"; done
581 env=; for i in $(eval echo {env} | tr -d '[] ' |sed "s/,/ /g" ); do env="-e $i $env"; done
582 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
583 if [ "{repo}" = "_" ]; then
584 image={container}:{tag}
585 elif [ "{port}" = "None" ]; then
586 image={repo}/{container}:{tag}
588 image={repo}:{port}/{container}:{tag}
590 sudo docker run --rm \
593 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
594 -e S3_DST_URL=s3://artifacts.opnfv.org/functest \
595 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest \
596 -v /home/opnfv/functest/.boto:/root/.boto \
597 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
598 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
599 -e BUILD_TAG=$BUILD_TAG \
600 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
604 name: 'functest-{tag}-zip'
608 - functest-build_tag:
610 - functest-EXTERNAL_NETWORK:
611 EXTERNAL_NETWORK: public
612 - functest-VOLUME_DEVICE_NAME:
613 VOLUME_DEVICE_NAME: sdb
614 - functest-IMAGE_PROPERTIES:
615 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
618 <<: *functest-containers
623 name: 'functest-{tag}-zip'
626 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
627 - /home/opnfv/functest/images:/home/opnfv/functest/images
629 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
630 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
631 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
632 container: 'functest-healthcheck'
634 - 'functest-{tag}-zip'
637 name: 'functest-{tag}-daily'
638 project-type: multijob
644 - functest-build_tag:
646 - functest-EXTERNAL_NETWORK:
647 EXTERNAL_NETWORK: public
648 - functest-VOLUME_DEVICE_NAME:
649 VOLUME_DEVICE_NAME: sdb
650 - functest-IMAGE_PROPERTIES:
651 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
652 # PyYAML and yamllint differ here
653 # see https://github.com/yaml/pyyaml/issues/234
654 # yamllint disable rule:indentation
658 - ^functest-(pi-)*{tag}-(daily|docker|review)$
659 # yamllint enable rule:indentation
662 name: remove former images
664 - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi'
666 - name: 'functest-opnfv-functest-smoke-{tag}-rmi'
668 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi'
670 - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi'
672 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi'
674 - name: 'functest-opnfv-functest-vnf-{tag}-rmi'
677 name: pull containers
679 - name: 'functest-opnfv-functest-healthcheck-{tag}-pull'
681 - name: 'functest-opnfv-functest-smoke-{tag}-pull'
683 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-pull'
685 - name: 'functest-opnfv-functest-benchmarking-{tag}-pull'
687 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-pull'
689 - name: 'functest-opnfv-functest-vnf-{tag}-pull'
692 name: opnfv/functest-healthcheck:{tag}
694 - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run'
696 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
698 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
700 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run'
702 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run'
704 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run'
706 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run'
708 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
710 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
712 - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run'
714 - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run'
716 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
718 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run'
721 name: opnfv/functest-smoke:{tag}
723 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run'
725 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run'
727 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run'
729 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run'
731 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run'
733 - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run'
735 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_defcore-run'
737 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run'
739 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run'
741 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run'
743 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run'
745 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run'
747 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run'
749 - name: 'functest-opnfv-functest-smoke-{tag}-patrole-run'
751 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run'
753 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run'
755 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run'
757 - name: 'functest-opnfv-functest-smoke-{tag}-networking-bgpvpn-run'
759 - name: 'functest-opnfv-functest-smoke-{tag}-networking-sfc-run'
761 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run'
763 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run'
765 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run'
768 name: opnfv/functest-smoke-cntt:{tag}
770 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run'
772 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run'
774 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run'
776 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run'
778 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run'
780 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run'
782 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run'
784 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run'
787 name: opnfv/functest-benchmarking:{tag}
789 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run'
791 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
793 - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run'
795 - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run'
798 name: opnfv/functest-benchmarking-cntt:{tag}
800 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run'
802 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run'
805 name: opnfv/functest-vnf:{tag}
807 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run'
809 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run'
811 - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run'
813 - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
815 - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
818 name: dump all campaign data
820 - name: 'functest-{tag}-zip'
824 name: 'functest-daily'
827 - 'functest-{tag}-daily'
839 regex: ^functest-[a-z0-9.]+-daily$
841 - functest-build-containers: &functest-build-containers
842 name: 'functest-build-containers'
843 <<: *functest-containers
846 buildargs: '{buildargs}'
850 name: functest-build-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}
862 if [ "{buildargs}" != "None" ]; then
863 build_args="{buildargs}"
865 if [ "{ref_arg}" != "None" ]; then
866 build_args="$build_args --build-arg {ref_arg}={ref}"
869 if [ "{from}" != "None" ]; then
870 sed -i {from} Dockerfile
872 sudo docker build $build_args \
873 --pull=false --no-cache --force-rm=true \
880 url: 'https://gerrit.opnfv.org/gerrit/functest'
881 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
885 - functest-dep: &functest-dep
886 name: 'functest-containers'
890 dependency: '{dependency}'
893 name: functest-pull-dep-images
897 if [ "_" = "_" ]; then
898 image=alpine:{dependency}
899 elif [ "None" = "None" ]; then
900 image=_/alpine:{dependency}
902 image=_:/alpine:{dependency}
904 sudo docker pull $image || true
907 name: functest-remove-dep-images
911 if [ "_" = "_" ]; then
912 image=alpine:{dependency}
913 elif [ "" = "None" ]; then
914 image=_/alpine:{dependency}
916 image=_:/alpine:{dependency}
918 sudo docker rmi $image || true
921 name: 'functest-{repo}-{tag}-dep-pull'
926 - functest-pull-dep-images:
930 name: 'functest-{repo}-{tag}-dep-pull'
933 - 'functest-{repo}-{tag}-dep-pull'
936 name: 'functest-{repo}-{tag}-dep-rmi'
941 - functest-remove-dep-images:
945 name: 'functest-{repo}-{tag}-dep-rmi'
948 - 'functest-{repo}-{tag}-dep-rmi'
955 sudo apt-get update && sudo apt-get install \
956 software-properties-common gpg -y
957 sudo add-apt-repository -y ppa:deadsnakes/ppa
958 sudo apt-get update && sudo apt-get install python3.8 \
959 python3.8-dev python3.8-distutils \
960 python3.7 python3.7-dev python3.6 python3.6-dev \
961 python python-dev python3-pip enchant -y
962 sudo pip3 install tox tox-pip-version
967 name: 'functest-{tag}-tox'
972 - functest-patchset-created:
984 - 'functest-{tag}-tox'
987 name: 'functest-{repo}-{container}-{tag}-gate'
995 - functest-build-containers:
996 <<: *functest-build-containers
998 buildargs: '{buildargs}'
1001 name: functest-opnfv-functest-core-{tag}-gate
1002 <<: *functest-params
1003 container: functest-core
1007 - 'functest-{repo}-{container}-{tag}-gate'
1010 name: functest-opnfv-functest-tempest-{tag}-gate
1011 <<: *functest-params
1012 container: functest-tempest
1014 path: docker/tempest
1017 - {'tag': 'wallaby'}
1022 - 'functest-{repo}-{container}-{tag}-gate'
1025 name: functest-opnfv-functest-healthcheck-{tag}-gate
1026 <<: *functest-params
1027 container: functest-healthcheck
1029 path: docker/healthcheck
1031 - 'functest-{repo}-{container}-{tag}-gate'
1034 name: functest-opnfv-functest-smoke-{tag}-gate
1035 <<: *functest-params
1036 container: functest-smoke
1040 - 'functest-{repo}-{container}-{tag}-gate'
1043 name: functest-opnfv-functest-benchmarking-{tag}-gate
1044 <<: *functest-params
1045 container: functest-benchmarking
1047 path: docker/benchmarking
1049 - 'functest-{repo}-{container}-{tag}-gate'
1052 name: functest-opnfv-functest-vnf-{tag}-gate
1053 <<: *functest-params
1054 container: functest-vnf
1058 - 'functest-{repo}-{container}-{tag}-gate'
1061 name: functest-opnfv-functest-smoke-cntt-{tag}-gate
1062 <<: *functest-params
1063 container: functest-smoke-cntt
1065 path: docker/smoke-cntt
1067 - 'functest-{repo}-{container}-{tag}-gate'
1070 name: functest-opnfv-functest-benchmarking-cntt-{tag}-gate
1071 <<: *functest-params
1072 container: functest-benchmarking-cntt
1074 path: docker/benchmarking-cntt
1076 - 'functest-{repo}-{container}-{tag}-gate'
1079 name: functest-patchset-created
1083 - patchset-created-event
1084 - comment-added-contains-event:
1085 comment-contains-value: 'recheck'
1086 - comment-added-contains-event:
1087 comment-contains-value: 'reverify'
1089 - project-compare-type: 'ANT'
1090 project-pattern: 'functest'
1092 - branch-compare-type: 'ANT'
1093 branch-pattern: '**/{branch}'
1096 name: 'functest-{tag}-review'
1097 project-type: multijob
1099 - functest-patchset-created:
1104 - functest-build_tag:
1106 - functest-EXTERNAL_NETWORK:
1107 EXTERNAL_NETWORK: public
1108 - functest-VOLUME_DEVICE_NAME:
1109 VOLUME_DEVICE_NAME: sdb
1110 - functest-IMAGE_PROPERTIES:
1111 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
1112 # PyYAML and yamllint differ here
1113 # see https://github.com/yaml/pyyaml/issues/234
1114 # yamllint disable rule:indentation
1118 - ^functest-(pi-)*{tag}-(daily|docker|review)$
1119 # yamllint enable rule:indentation
1122 name: remove former images
1124 - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi'
1126 - name: 'functest-opnfv-functest-smoke-{tag}-rmi'
1128 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi'
1130 - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi'
1132 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi'
1134 - name: 'functest-opnfv-functest-vnf-{tag}-rmi'
1137 name: remove dependency
1139 - name: 'functest-{repo}-{tag}-dep-rmi'
1142 name: pull dependency
1144 - name: 'functest-{repo}-{tag}-dep-pull'
1147 name: build opnfv/functest-core
1149 - name: 'functest-opnfv-functest-core-{tag}-gate'
1152 name: build opnfv/functest-tempest
1154 - name: 'functest-opnfv-functest-tempest-{tag}-gate'
1157 name: build containers
1159 - name: 'functest-opnfv-functest-healthcheck-{tag}-gate'
1161 - name: 'functest-opnfv-functest-smoke-{tag}-gate'
1163 - name: 'functest-opnfv-functest-benchmarking-{tag}-gate'
1165 - name: 'functest-opnfv-functest-vnf-{tag}-gate'
1168 name: build cntt containers
1170 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-gate'
1172 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-gate'
1175 name: opnfv/functest-healthcheck:{tag}
1177 - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run'
1179 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
1181 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
1183 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run'
1185 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run'
1187 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run'
1189 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run'
1191 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
1193 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
1195 - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run'
1197 - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run'
1199 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
1201 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run'
1204 name: opnfv/functest-smoke:{tag}
1206 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run'
1208 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run'
1210 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run'
1212 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run'
1214 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run'
1216 - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run'
1218 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_defcore-run'
1220 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run'
1222 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run'
1224 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run'
1226 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run'
1228 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run'
1230 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run'
1232 - name: 'functest-opnfv-functest-smoke-{tag}-patrole-run'
1234 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run'
1236 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run'
1238 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run'
1240 - name: 'functest-opnfv-functest-smoke-{tag}-networking-bgpvpn-run'
1242 - name: 'functest-opnfv-functest-smoke-{tag}-networking-sfc-run'
1244 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run'
1246 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run'
1248 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run'
1251 name: opnfv/functest-smoke-cntt:{tag}
1253 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run'
1255 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run'
1257 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run'
1259 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run'
1261 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run'
1263 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run'
1265 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run'
1267 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run'
1270 name: opnfv/functest-benchmarking:{tag}
1272 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run'
1274 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
1276 - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run'
1278 - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run'
1281 name: opnfv/functest-benchmarking-cntt:{tag}
1283 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run'
1285 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run'
1288 name: opnfv/functest-vnf:{tag}
1290 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run'
1292 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run'
1294 - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run'
1296 - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
1298 - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
1302 name: 'functest-review'
1303 <<: *functest-params
1305 - 'functest-{tag}-review'
1308 name: functest-review
1317 regex: ^functest-[a-z0-9.]+-review$
1329 regex: ^functest-[a-z0-9.]+-tox$
1332 name: functest-push-containers
1336 if [ "{repo}" = "_" ]; then
1337 image={container}:{tag}
1338 elif [ "{port}" = "None" ]; then
1339 image={repo}/{container}:{tag}
1341 image={repo}:{port}/{container}:{tag}
1343 sudo docker push $image
1346 name: functest-commit
1349 cron: "*/30 * * * *"
1352 name: 'functest-{repo}-{container}-{tag}-build'
1360 - functest-build-containers:
1361 <<: *functest-build-containers
1363 buildargs: '{buildargs}'
1364 - functest-push-containers:
1365 <<: *functest-build-containers
1369 name: functest-opnfv-functest-core-{tag}-build
1370 <<: *functest-params
1371 container: functest-core
1375 - 'functest-{repo}-{container}-{tag}-build'
1378 name: functest-opnfv-functest-tempest-{tag}-build
1379 <<: *functest-params
1380 container: functest-tempest
1382 path: docker/tempest
1385 - {'tag': 'wallaby'}
1390 - 'functest-{repo}-{container}-{tag}-build'
1393 name: functest-opnfv-functest-healthcheck-{tag}-build
1394 <<: *functest-params
1395 container: functest-healthcheck
1397 path: docker/healthcheck
1399 - 'functest-{repo}-{container}-{tag}-build'
1402 name: functest-opnfv-functest-smoke-{tag}-build
1403 <<: *functest-params
1404 container: functest-smoke
1408 - 'functest-{repo}-{container}-{tag}-build'
1411 name: functest-opnfv-functest-benchmarking-{tag}-build
1412 <<: *functest-params
1413 container: functest-benchmarking
1415 path: docker/benchmarking
1417 - 'functest-{repo}-{container}-{tag}-build'
1420 name: functest-opnfv-functest-vnf-{tag}-build
1421 <<: *functest-params
1422 container: functest-vnf
1426 - 'functest-{repo}-{container}-{tag}-build'
1429 name: functest-opnfv-functest-smoke-cntt-{tag}-build
1430 <<: *functest-params
1431 container: functest-smoke-cntt
1433 path: docker/smoke-cntt
1435 - 'functest-{repo}-{container}-{tag}-build'
1438 name: functest-opnfv-functest-benchmarking-cntt-{tag}-build
1439 <<: *functest-params
1440 container: functest-benchmarking-cntt
1442 path: docker/benchmarking-cntt
1444 - 'functest-{repo}-{container}-{tag}-build'
1447 name: 'functest-{tag}-docker'
1448 project-type: multijob
1457 # PyYAML and yamllint differ here
1458 # see https://github.com/yaml/pyyaml/issues/234
1459 # yamllint disable rule:indentation
1463 - ^functest-(pi-)*{tag}-(daily|docker|review)$
1464 # yamllint enable rule:indentation
1467 name: remove dependency
1469 - name: 'functest-{repo}-{tag}-dep-rmi'
1472 name: pull dependency
1474 - name: 'functest-{repo}-{tag}-dep-pull'
1477 name: build opnfv/functest-core
1479 - name: 'functest-opnfv-functest-core-{tag}-build'
1482 name: build opnfv/functest-tempest
1484 - name: 'functest-opnfv-functest-tempest-{tag}-build'
1487 name: build containers
1489 - name: 'functest-opnfv-functest-healthcheck-{tag}-build'
1491 - name: 'functest-opnfv-functest-smoke-{tag}-build'
1493 - name: 'functest-opnfv-functest-benchmarking-{tag}-build'
1495 - name: 'functest-opnfv-functest-vnf-{tag}-build'
1498 name: build cntt containers
1500 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-build'
1502 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-build'
1506 name: functest-trivy
1509 sudo apt-get update && sudo apt-get install curl -y
1511 curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b .
1512 if [ "{repo}" = "_" ]; then
1513 image={container}:{tag}
1514 elif [ "{port}" = "None" ]; then
1515 image={repo}/{container}:{tag}
1517 image={repo}:{port}/{container}:{tag}
1519 ./trivy --exit-code 1 $image
1522 name: 'functest-{repo}-{container}-{tag}-trivy'
1530 <<: *functest-containers
1533 name: 'functest-opnfv-functest-core-trivy'
1534 <<: *functest-params
1535 container: 'functest-core'
1537 - 'functest-{repo}-{container}-{tag}-trivy'
1540 name: 'functest-opnfv-functest-tempest-trivy'
1541 <<: *functest-params
1542 container: 'functest-tempest'
1544 - 'functest-{repo}-{container}-{tag}-trivy'
1547 name: 'functest-opnfv-functest-healthcheck-trivy'
1548 <<: *functest-params
1549 container: 'functest-healthcheck'
1551 - 'functest-{repo}-{container}-{tag}-trivy'
1554 name: 'functest-opnfv-functest-smoke-trivy'
1555 <<: *functest-params
1556 container: 'functest-smoke'
1558 - 'functest-{repo}-{container}-{tag}-trivy'
1561 name: 'functest-opnfv-functest-benchmarking-trivy'
1562 <<: *functest-params
1563 container: 'functest-benchmarking'
1565 - 'functest-{repo}-{container}-{tag}-trivy'
1568 name: 'functest-opnfv-functest-vnf-trivy'
1569 <<: *functest-params
1570 container: 'functest-vnf'
1572 - 'functest-{repo}-{container}-{tag}-trivy'
1575 name: 'functest-opnfv-functest-smoke-cntt-trivy'
1576 <<: *functest-params
1577 container: 'functest-smoke-cntt'
1579 - 'functest-{repo}-{container}-{tag}-trivy'
1582 name: 'functest-opnfv-functest-benchmarking-cntt-trivy'
1583 <<: *functest-params
1584 container: 'functest-benchmarking-cntt'
1586 - 'functest-{repo}-{container}-{tag}-trivy'
1590 <<: *functest-params
1592 - 'functest-{tag}-docker'
1595 name: functest-docker
1604 regex: ^functest-[a-z0-9.]+-docker$
1607 name: functest-trivy
1616 regex: (?!functest-kubernetes)(?!functest-pi)^functest-[a-z-0-9.]+-trivy$