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.83
26 DASHBOARD_URL: http://172.30.13.94
33 DASHBOARD_URL: http://172.30.12.88
40 DASHBOARD_URL: http://172.30.12.85
45 branch: stable/wallaby
47 DASHBOARD_URL: http://172.30.13.91
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}'
98 published_ports: '{published_ports}'
99 DASHBOARD_URL: '{DASHBOARD_URL}'
102 name: functest-pull-containers
106 if [ "{repo}" = "_" ]; then
107 image={container}:{tag}
108 elif [ "{port}" = "None" ]; then
109 image={repo}/{container}:{tag}
111 image={repo}:{port}/{container}:{tag}
113 sudo docker pull $image
116 name: functest-run-containers
121 if [ "{volumes}" != "None" ]; then
122 for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
123 do volumes="-v $i $volumes"; done
126 if [ "{env}" != "None" ]; then
127 for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
128 do env="-e $i $env"; done
131 if [ "{published_ports}" != "None" ]; then
132 for i in $(echo {published_ports} | tr -d '[]' |sed "s/, / /g" ); \
133 do published_ports="-p $i $published_ports"; done
135 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
136 if [ "{repo}" = "_" ]; then
137 image={container}:{tag}
138 elif [ "{port}" = "None" ]; then
139 image={repo}/{container}:{tag}
141 image={repo}:{port}/{container}:{tag}
143 sudo mkdir -p $WORKSPACE/results
144 sudo chown {uid}:{gid} $WORKSPACE/results
145 sudo docker run --rm \
146 --privileged={privileged} \
147 --network={network} \
151 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
152 -e S3_DST_URL=s3://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
153 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \
154 -v /home/opnfv/functest/.boto:/etc/boto.cfg \
155 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
156 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
158 -e BUILD_TAG=$BUILD_TAG \
159 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
160 -e DASHBOARD_URL={DASHBOARD_URL} \
161 $image run_tests -t {test} -p -r
164 name: functest-remove-images
168 if [ "{repo}" = "_" ]; then
169 image={container}:{tag}
170 elif [ "{port}" = "None" ]; then
171 image={repo}/{container}:{tag}
173 image={repo}:{port}/{container}:{tag}
175 sudo docker rmi $image || true
178 name: 'functest-{repo}-{container}-{tag}-pull'
183 - functest-pull-containers:
184 <<: *functest-containers
187 name: 'functest-opnfv-functest-healthcheck-pull'
189 container: 'functest-healthcheck'
191 - 'functest-{repo}-{container}-{tag}-pull'
194 name: 'functest-opnfv-functest-smoke-pull'
196 container: 'functest-smoke'
198 - 'functest-{repo}-{container}-{tag}-pull'
201 name: 'functest-opnfv-functest-smoke-cntt-pull'
203 container: 'functest-smoke-cntt'
205 - 'functest-{repo}-{container}-{tag}-pull'
208 name: 'functest-opnfv-functest-benchmarking-pull'
210 container: 'functest-benchmarking'
212 - 'functest-{repo}-{container}-{tag}-pull'
215 name: 'functest-opnfv-functest-benchmarking-cntt-pull'
217 container: 'functest-benchmarking-cntt'
219 - 'functest-{repo}-{container}-{tag}-pull'
222 name: 'functest-opnfv-functest-vnf-pull'
224 container: 'functest-vnf'
226 - 'functest-{repo}-{container}-{tag}-pull'
229 name: 'functest-{repo}-{container}-{tag}-rmi'
234 - functest-remove-images:
235 <<: *functest-containers
238 name: 'functest-opnfv-functest-healthcheck-rmi'
240 container: 'functest-healthcheck'
242 - 'functest-{repo}-{container}-{tag}-rmi'
245 name: 'functest-opnfv-functest-smoke-rmi'
247 container: 'functest-smoke'
249 - 'functest-{repo}-{container}-{tag}-rmi'
252 name: 'functest-opnfv-functest-smoke-cntt-rmi'
254 container: 'functest-smoke-cntt'
256 - 'functest-{repo}-{container}-{tag}-rmi'
259 name: 'functest-opnfv-functest-benchmarking-rmi'
261 container: 'functest-benchmarking'
263 - 'functest-{repo}-{container}-{tag}-rmi'
266 name: 'functest-opnfv-functest-benchmarking-cntt-rmi'
268 container: 'functest-benchmarking-cntt'
270 - 'functest-{repo}-{container}-{tag}-rmi'
273 name: 'functest-opnfv-functest-vnf-rmi'
275 container: 'functest-vnf'
277 - 'functest-{repo}-{container}-{tag}-rmi'
280 name: 'functest-opnfv-functest-healthcheck-{tag}-{test}-run'
284 - functest-build_tag:
286 - functest-EXTERNAL_NETWORK:
287 EXTERNAL_NETWORK: public
288 - functest-VOLUME_DEVICE_NAME:
289 VOLUME_DEVICE_NAME: sdb
290 - functest-IMAGE_PROPERTIES:
291 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
293 - functest-run-containers:
294 <<: *functest-run-containers
297 name: 'functest-opnfv-functest-healthcheck'
300 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
301 - /home/opnfv/functest/images:/home/opnfv/functest/images
303 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
304 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
305 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
307 container: 'functest-healthcheck'
327 - 'functest-opnfv-functest-healthcheck-{tag}-{test}-run'
330 name: 'functest-opnfv-functest-smoke-{tag}-{test}-run'
334 - functest-build_tag:
336 - functest-EXTERNAL_NETWORK:
337 EXTERNAL_NETWORK: public
338 - functest-VOLUME_DEVICE_NAME:
339 VOLUME_DEVICE_NAME: sdb
340 - functest-IMAGE_PROPERTIES:
341 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
343 - functest-run-containers:
344 <<: *functest-run-containers
347 name: 'functest-opnfv-functest-smoke'
350 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
351 - /home/opnfv/functest/images:/home/opnfv/functest/images
353 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
354 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
355 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
357 container: 'functest-smoke'
382 - 'functest-opnfv-functest-smoke-{tag}-{test}-run'
385 name: 'functest-opnfv-functest-smoke-cntt-{tag}-{test}-run'
389 - functest-build_tag:
391 - functest-EXTERNAL_NETWORK:
392 EXTERNAL_NETWORK: public
393 - functest-VOLUME_DEVICE_NAME:
394 VOLUME_DEVICE_NAME: sdb
395 - functest-IMAGE_PROPERTIES:
396 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
398 - functest-run-containers:
399 <<: *functest-run-containers
402 name: 'functest-opnfv-functest-smoke-cntt'
405 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
406 - /home/opnfv/functest/images:/home/opnfv/functest/images
408 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
409 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
410 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
412 container: 'functest-smoke-cntt'
414 - tempest_neutron_cntt
415 - tempest_cinder_cntt
416 - tempest_keystone_cntt
420 - tempest_scenario_cntt
427 - 'functest-opnfv-functest-smoke-cntt-{tag}-{test}-run'
430 name: 'functest-opnfv-functest-benchmarking-{tag}-{test}-run'
434 - functest-build_tag:
436 - functest-EXTERNAL_NETWORK:
437 EXTERNAL_NETWORK: public
438 - functest-VOLUME_DEVICE_NAME:
439 VOLUME_DEVICE_NAME: sdb
440 - functest-IMAGE_PROPERTIES:
441 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
443 - functest-run-containers:
444 <<: *functest-run-containers
447 name: 'functest-opnfv-functest-benchmarking'
450 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
451 - /home/opnfv/functest/images:/home/opnfv/functest/images
453 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
454 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
455 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
457 container: 'functest-benchmarking'
468 - 'functest-opnfv-functest-benchmarking-{tag}-{test}-run'
471 name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-{test}-run'
475 - functest-build_tag:
477 - functest-EXTERNAL_NETWORK:
478 EXTERNAL_NETWORK: public
479 - functest-VOLUME_DEVICE_NAME:
480 VOLUME_DEVICE_NAME: sdb
481 - functest-IMAGE_PROPERTIES:
482 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
484 - functest-run-containers:
485 <<: *functest-run-containers
488 name: 'functest-opnfv-functest-benchmarking-cntt'
491 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
492 - /home/opnfv/functest/images:/home/opnfv/functest/images
494 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
495 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
496 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
498 container: 'functest-benchmarking-cntt'
507 - 'functest-opnfv-functest-benchmarking-cntt-{tag}-{test}-run'
510 name: 'functest-opnfv-functest-vnf-{tag}-{test}-run'
514 - functest-build_tag:
516 - functest-EXTERNAL_NETWORK:
517 EXTERNAL_NETWORK: public
518 - functest-VOLUME_DEVICE_NAME:
519 VOLUME_DEVICE_NAME: sdb
520 - functest-IMAGE_PROPERTIES:
521 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
523 - functest-run-containers:
524 <<: *functest-run-containers
527 name: 'functest-opnfv-functest-vnf'
530 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
531 - /home/opnfv/functest/images:/home/opnfv/functest/images
533 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
534 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
535 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
537 container: 'functest-vnf'
549 - 'functest-opnfv-functest-vnf-{tag}-{test}-run'
557 if [ "{volumes}" != "None" ]; then
558 for i in $(echo {volumes} | tr -d '[]' |sed "s/, / /g" ); \
559 do volumes="-v $i $volumes"; done
562 if [ "{env}" != "None" ]; then
563 for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \
564 do env="-e $i $env"; done
567 if [ "{published_ports}" != "None" ]; then
568 for i in $(echo {published_ports} | tr -d '[]' |sed "s/, / /g" ); \
569 do published_ports="-p $i $published_ports"; done
571 [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true
572 if [ "{repo}" = "_" ]; then
573 image={container}:{tag}
574 elif [ "{port}" = "None" ]; then
575 image={repo}/{container}:{tag}
577 image={repo}:{port}/{container}:{tag}
579 sudo mkdir -p $WORKSPACE/results
580 sudo chown {uid}:{gid} $WORKSPACE/results
581 sudo docker run --rm \
585 -e S3_ENDPOINT_URL=https://storage.googleapis.com \
586 -e S3_DST_URL=s3://artifacts.opnfv.org/functest \
587 -e HTTP_DST_URL=http://artifacts.opnfv.org/functest \
588 -v /home/opnfv/functest/.boto:/etc/boto.cfg \
589 -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
590 -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \
591 -e BUILD_TAG=$BUILD_TAG \
592 -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \
596 name: 'functest-{tag}-zip'
600 - functest-build_tag:
602 - functest-EXTERNAL_NETWORK:
603 EXTERNAL_NETWORK: public
604 - functest-VOLUME_DEVICE_NAME:
605 VOLUME_DEVICE_NAME: sdb
606 - functest-IMAGE_PROPERTIES:
607 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
610 <<: *functest-containers
615 published_ports: '{published_ports}'
618 name: 'functest-{tag}-zip'
621 - /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file
622 - /home/opnfv/functest/images:/home/opnfv/functest/images
624 - EXTERNAL_NETWORK=$EXTERNAL_NETWORK
625 - VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME
626 - IMAGE_PROPERTIES=$IMAGE_PROPERTIES
628 container: 'functest-healthcheck'
632 - 'functest-{tag}-zip'
635 name: 'functest-{tag}-daily'
636 project-type: multijob
642 - functest-build_tag:
644 - functest-EXTERNAL_NETWORK:
645 EXTERNAL_NETWORK: public
646 - functest-VOLUME_DEVICE_NAME:
647 VOLUME_DEVICE_NAME: sdb
648 - functest-IMAGE_PROPERTIES:
649 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
650 # PyYAML and yamllint differ here
651 # see https://github.com/yaml/pyyaml/issues/234
652 # yamllint disable rule:indentation
656 - ^functest-(pi-)*{tag}-(daily|docker|review)$
657 # yamllint enable rule:indentation
660 name: remove former images
662 - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi'
664 - name: 'functest-opnfv-functest-smoke-{tag}-rmi'
666 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi'
668 - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi'
670 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi'
672 - name: 'functest-opnfv-functest-vnf-{tag}-rmi'
675 name: pull containers
677 - name: 'functest-opnfv-functest-healthcheck-{tag}-pull'
679 - name: 'functest-opnfv-functest-smoke-{tag}-pull'
681 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-pull'
683 - name: 'functest-opnfv-functest-benchmarking-{tag}-pull'
685 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-pull'
687 - name: 'functest-opnfv-functest-vnf-{tag}-pull'
690 name: opnfv/functest-healthcheck:{tag}
692 - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run'
694 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
696 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
698 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run'
700 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run'
702 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run'
704 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run'
706 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
708 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
710 - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run'
712 - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run'
714 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
716 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run'
719 name: opnfv/functest-smoke:{tag}
721 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run'
723 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run'
725 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run'
727 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run'
729 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run'
731 - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run'
733 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run'
735 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run'
737 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run'
739 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run'
741 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run'
743 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run'
745 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run'
747 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run'
749 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run'
751 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run'
753 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run'
755 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run'
758 name: opnfv/functest-smoke-cntt:{tag}
760 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run'
762 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run'
764 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run'
766 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run'
768 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run'
770 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run'
772 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run'
774 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run'
777 name: opnfv/functest-benchmarking:{tag}
779 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run'
781 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
783 - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run'
785 - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run'
788 name: opnfv/functest-benchmarking-cntt:{tag}
790 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run'
792 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run'
795 name: opnfv/functest-vnf:{tag}
797 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run'
799 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run'
801 - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run'
803 - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
805 - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
808 name: dump all campaign data
810 - name: 'functest-{tag}-zip'
817 recipients: cedric.ollivier@orange.com
820 name: 'functest-daily'
823 - 'functest-{tag}-daily'
835 regex: ^functest-[a-z0-9.]+-daily$
837 - functest-build-containers: &functest-build-containers
838 name: 'functest-build-containers'
839 <<: *functest-containers
842 build_args: '{build_args}'
846 name: functest-build-containers
850 if [ "{repo}" = "_" ]; then
851 image={container}:{tag}
852 elif [ "{port}" = "None" ]; then
853 image={repo}/{container}:{tag}
855 image={repo}:{port}/{container}:{tag}
858 if [ "{build_args}" != "None" ]; then
859 for i in $(echo {build_args} | tr -d '[]' |sed "s/, / /g" ); \
860 do build_args="--build-arg $i $build_args"; done
862 if [ "{ref_arg}" != "None" ]; then
863 build_args="$build_args --build-arg {ref_arg}={ref}"
866 if [ "{from}" != "None" ]; then
867 sed -i {from} Dockerfile
869 sudo docker build $build_args \
870 --pull=false --no-cache --force-rm=true \
877 url: 'https://gerrit.opnfv.org/gerrit/functest'
878 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
882 - functest-dep: &functest-dep
883 name: 'functest-containers'
887 dependency: '{dependency}'
890 name: functest-pull-dep-images
894 if [ "_" = "_" ]; then
895 image=alpine:{dependency}
896 elif [ "None" = "None" ]; then
897 image=_/alpine:{dependency}
899 image=_:/alpine:{dependency}
901 sudo docker pull $image || true
904 name: functest-remove-dep-images
908 if [ "_" = "_" ]; then
909 image=alpine:{dependency}
910 elif [ "" = "None" ]; then
911 image=_/alpine:{dependency}
913 image=_:/alpine:{dependency}
915 sudo docker rmi $image || true
918 name: 'functest-{repo}-{tag}-dep-pull'
923 - functest-pull-dep-images:
927 name: 'functest-{repo}-{tag}-dep-pull'
930 - 'functest-{repo}-{tag}-dep-pull'
933 name: 'functest-{repo}-{tag}-dep-rmi'
938 - functest-remove-dep-images:
942 name: 'functest-{repo}-{tag}-dep-rmi'
945 - 'functest-{repo}-{tag}-dep-rmi'
952 sudo apt-get -o DPkg::Lock::Timeout=300 update && \
953 sudo DEBIAN_FRONTEND=noninteractive apt-get \
954 -o DPkg::Lock::Timeout=300 dist-upgrade -y
955 sudo DEBIAN_FRONTEND=noninteractive \
956 apt-get -o DPkg::Lock::Timeout=300 install software-properties-common gpg -y
957 sudo add-apt-repository -y ppa:deadsnakes/ppa
958 sudo apt-get -o DPkg::Lock::Timeout=300 update && \
959 sudo DEBIAN_FRONTEND=noninteractive apt-get \
960 -o DPkg::Lock::Timeout=300 install \
961 libxml2-dev libxslt-dev libffi-dev libjpeg-dev \
962 python3.10 python3.10-dev python3.10-distutils \
963 python3.9 python3.9-dev python3.9-distutils \
964 python3.8 python3.8-dev python3.8-distutils \
965 python3-pip enchant-2 -y
966 sudo pip3 install tox tox-pip-version
971 name: 'functest-{tag}-tox'
976 - functest-patchset-created:
988 - 'functest-{tag}-tox'
991 name: 'functest-{repo}-{container}-{tag}-gate'
999 - functest-build-containers:
1000 <<: *functest-build-containers
1001 ref: $GERRIT_REFSPEC
1002 build_args: '{build_args}'
1005 name: functest-opnfv-functest-core-{tag}-gate
1006 <<: *functest-params
1007 container: functest-core
1011 - 'functest-{repo}-{container}-{tag}-gate'
1014 name: functest-opnfv-functest-healthcheck-{tag}-gate
1015 <<: *functest-params
1016 container: functest-healthcheck
1018 path: docker/healthcheck
1020 - 'functest-{repo}-{container}-{tag}-gate'
1023 name: functest-opnfv-functest-smoke-{tag}-gate
1024 <<: *functest-params
1025 container: functest-smoke
1029 - 'functest-{repo}-{container}-{tag}-gate'
1032 name: functest-opnfv-functest-benchmarking-{tag}-gate
1033 <<: *functest-params
1034 container: functest-benchmarking
1036 path: docker/benchmarking
1038 - 'functest-{repo}-{container}-{tag}-gate'
1041 name: functest-opnfv-functest-vnf-{tag}-gate
1042 <<: *functest-params
1043 container: functest-vnf
1047 - 'functest-{repo}-{container}-{tag}-gate'
1050 name: functest-opnfv-functest-smoke-cntt-{tag}-gate
1051 <<: *functest-params
1052 container: functest-smoke-cntt
1054 path: docker/smoke-cntt
1056 - 'functest-{repo}-{container}-{tag}-gate'
1059 name: functest-opnfv-functest-benchmarking-cntt-{tag}-gate
1060 <<: *functest-params
1061 container: functest-benchmarking-cntt
1063 path: docker/benchmarking-cntt
1065 - 'functest-{repo}-{container}-{tag}-gate'
1068 name: functest-patchset-created
1072 - patchset-created-event
1073 - comment-added-contains-event:
1074 comment-contains-value: 'recheck'
1075 - comment-added-contains-event:
1076 comment-contains-value: 'reverify'
1078 - project-compare-type: 'ANT'
1079 project-pattern: 'functest'
1081 - branch-compare-type: 'ANT'
1082 branch-pattern: '**/{branch}'
1085 name: 'functest-{tag}-review'
1086 project-type: multijob
1088 - functest-patchset-created:
1093 - functest-build_tag:
1095 - functest-EXTERNAL_NETWORK:
1096 EXTERNAL_NETWORK: public
1097 - functest-VOLUME_DEVICE_NAME:
1098 VOLUME_DEVICE_NAME: sdb
1099 - functest-IMAGE_PROPERTIES:
1100 IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi
1101 # PyYAML and yamllint differ here
1102 # see https://github.com/yaml/pyyaml/issues/234
1103 # yamllint disable rule:indentation
1107 - ^functest-(pi-)*{tag}-(daily|docker|review)$
1108 # yamllint enable rule:indentation
1111 name: remove former images
1113 - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi'
1115 - name: 'functest-opnfv-functest-smoke-{tag}-rmi'
1117 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi'
1119 - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi'
1121 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi'
1123 - name: 'functest-opnfv-functest-vnf-{tag}-rmi'
1126 name: remove dependency
1128 - name: 'functest-{repo}-{tag}-dep-rmi'
1131 name: pull dependency
1133 - name: 'functest-{repo}-{tag}-dep-pull'
1136 name: build opnfv/functest-core
1138 - name: 'functest-opnfv-functest-core-{tag}-gate'
1141 name: build containers
1143 - name: 'functest-opnfv-functest-healthcheck-{tag}-gate'
1145 - name: 'functest-opnfv-functest-smoke-{tag}-gate'
1147 - name: 'functest-opnfv-functest-benchmarking-{tag}-gate'
1149 - name: 'functest-opnfv-functest-vnf-{tag}-gate'
1152 name: build cntt containers
1154 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-gate'
1156 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-gate'
1159 name: opnfv/functest-healthcheck:{tag}
1161 - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run'
1163 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run'
1165 - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run'
1167 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run'
1169 - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run'
1171 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run'
1173 - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run'
1175 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run'
1177 - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run'
1179 - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run'
1181 - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run'
1183 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run'
1185 - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run'
1188 name: opnfv/functest-smoke:{tag}
1190 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run'
1192 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run'
1194 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run'
1196 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run'
1198 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run'
1200 - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run'
1202 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run'
1204 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run'
1206 - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run'
1208 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run'
1210 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run'
1212 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run'
1214 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run'
1216 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run'
1218 - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run'
1220 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run'
1222 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run'
1224 - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run'
1227 name: opnfv/functest-smoke-cntt:{tag}
1229 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run'
1231 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run'
1233 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run'
1235 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run'
1237 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run'
1239 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run'
1241 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run'
1243 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run'
1246 name: opnfv/functest-benchmarking:{tag}
1248 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run'
1250 - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run'
1252 - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run'
1254 - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run'
1257 name: opnfv/functest-benchmarking-cntt:{tag}
1259 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run'
1261 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run'
1264 name: opnfv/functest-vnf:{tag}
1266 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run'
1268 - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run'
1270 - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run'
1272 - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run'
1274 - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run'
1281 recipients: cedric.ollivier@orange.com
1284 name: 'functest-review'
1285 <<: *functest-params
1287 - 'functest-{tag}-review'
1290 name: functest-review
1299 regex: ^functest-[a-z0-9.]+-review$
1311 regex: ^functest-[a-z0-9.]+-tox$
1314 name: functest-push-containers
1318 if [ "{repo}" = "_" ]; then
1319 image={container}:{tag}
1320 elif [ "{port}" = "None" ]; then
1321 image={repo}/{container}:{tag}
1323 image={repo}:{port}/{container}:{tag}
1325 sudo docker push $image
1328 name: functest-commit
1331 cron: "*/30 * * * *"
1334 name: 'functest-{repo}-{container}-{tag}-build'
1342 - functest-build-containers:
1343 <<: *functest-build-containers
1345 build_args: '{build_args}'
1346 - functest-push-containers:
1347 <<: *functest-build-containers
1351 name: functest-opnfv-functest-core-{tag}-build
1352 <<: *functest-params
1353 container: functest-core
1357 - 'functest-{repo}-{container}-{tag}-build'
1360 name: functest-opnfv-functest-healthcheck-{tag}-build
1361 <<: *functest-params
1362 container: functest-healthcheck
1364 path: docker/healthcheck
1366 - 'functest-{repo}-{container}-{tag}-build'
1369 name: functest-opnfv-functest-smoke-{tag}-build
1370 <<: *functest-params
1371 container: functest-smoke
1375 - 'functest-{repo}-{container}-{tag}-build'
1378 name: functest-opnfv-functest-benchmarking-{tag}-build
1379 <<: *functest-params
1380 container: functest-benchmarking
1382 path: docker/benchmarking
1384 - 'functest-{repo}-{container}-{tag}-build'
1387 name: functest-opnfv-functest-vnf-{tag}-build
1388 <<: *functest-params
1389 container: functest-vnf
1393 - 'functest-{repo}-{container}-{tag}-build'
1396 name: functest-opnfv-functest-smoke-cntt-{tag}-build
1397 <<: *functest-params
1398 container: functest-smoke-cntt
1400 path: docker/smoke-cntt
1402 - 'functest-{repo}-{container}-{tag}-build'
1405 name: functest-opnfv-functest-benchmarking-cntt-{tag}-build
1406 <<: *functest-params
1407 container: functest-benchmarking-cntt
1409 path: docker/benchmarking-cntt
1411 - 'functest-{repo}-{container}-{tag}-build'
1414 name: 'functest-{tag}-docker'
1415 project-type: multijob
1424 # PyYAML and yamllint differ here
1425 # see https://github.com/yaml/pyyaml/issues/234
1426 # yamllint disable rule:indentation
1430 - ^functest-(pi-)*{tag}-(daily|docker|review)$
1431 # yamllint enable rule:indentation
1434 name: remove dependency
1436 - name: 'functest-{repo}-{tag}-dep-rmi'
1439 name: pull dependency
1441 - name: 'functest-{repo}-{tag}-dep-pull'
1444 name: build opnfv/functest-core
1446 - name: 'functest-opnfv-functest-core-{tag}-build'
1449 name: build containers
1451 - name: 'functest-opnfv-functest-healthcheck-{tag}-build'
1453 - name: 'functest-opnfv-functest-smoke-{tag}-build'
1455 - name: 'functest-opnfv-functest-benchmarking-{tag}-build'
1457 - name: 'functest-opnfv-functest-vnf-{tag}-build'
1460 name: build cntt containers
1462 - name: 'functest-opnfv-functest-smoke-cntt-{tag}-build'
1464 - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-build'
1471 recipients: cedric.ollivier@orange.com
1474 name: functest-trivy
1477 sudo apt-get -o DPkg::Lock::Timeout=300 update && \
1478 sudo DEBIAN_FRONTEND=noninteractive apt-get \
1479 -o DPkg::Lock::Timeout=300 install curl -y
1481 curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b .
1482 if [ "{repo}" = "_" ]; then
1483 image={container}:{tag}
1484 elif [ "{port}" = "None" ]; then
1485 image={repo}/{container}:{tag}
1487 image={repo}:{port}/{container}:{tag}
1489 ./trivy image --exit-code 1 $image
1492 name: 'functest-{repo}-{container}-{tag}-trivy'
1500 <<: *functest-containers
1506 recipients: cedric.ollivier@orange.com
1509 name: 'functest-opnfv-functest-core-trivy'
1510 <<: *functest-params
1511 container: 'functest-core'
1513 - 'functest-{repo}-{container}-{tag}-trivy'
1516 name: 'functest-opnfv-functest-healthcheck-trivy'
1517 <<: *functest-params
1518 container: 'functest-healthcheck'
1520 - 'functest-{repo}-{container}-{tag}-trivy'
1523 name: 'functest-opnfv-functest-smoke-trivy'
1524 <<: *functest-params
1525 container: 'functest-smoke'
1527 - 'functest-{repo}-{container}-{tag}-trivy'
1530 name: 'functest-opnfv-functest-benchmarking-trivy'
1531 <<: *functest-params
1532 container: 'functest-benchmarking'
1534 - 'functest-{repo}-{container}-{tag}-trivy'
1537 name: 'functest-opnfv-functest-vnf-trivy'
1538 <<: *functest-params
1539 container: 'functest-vnf'
1541 - 'functest-{repo}-{container}-{tag}-trivy'
1544 name: 'functest-opnfv-functest-smoke-cntt-trivy'
1545 <<: *functest-params
1546 container: 'functest-smoke-cntt'
1548 - 'functest-{repo}-{container}-{tag}-trivy'
1551 name: 'functest-opnfv-functest-benchmarking-cntt-trivy'
1552 <<: *functest-params
1553 container: 'functest-benchmarking-cntt'
1555 - 'functest-{repo}-{container}-{tag}-trivy'
1558 name: functest-grype
1561 sudo apt-get -o DPkg::Lock::Timeout=300 update && \
1562 sudo DEBIAN_FRONTEND=noninteractive apt-get \
1563 -o DPkg::Lock::Timeout=300 install curl -y
1565 curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sudo sh -s -- -b .
1566 if [ "{repo}" = "_" ]; then
1567 image={container}:{tag}
1568 elif [ "{port}" = "None" ]; then
1569 image={repo}/{container}:{tag}
1571 image={repo}:{port}/{container}:{tag}
1576 name: 'functest-{repo}-{container}-{tag}-grype'
1584 <<: *functest-containers
1590 recipients: cedric.ollivier@orange.com
1593 name: 'functest-opnfv-functest-core-grype'
1594 <<: *functest-params
1595 container: 'functest-core'
1597 - 'functest-{repo}-{container}-{tag}-grype'
1600 name: 'functest-opnfv-functest-healthcheck-grype'
1601 <<: *functest-params
1602 container: 'functest-healthcheck'
1604 - 'functest-{repo}-{container}-{tag}-grype'
1607 name: 'functest-opnfv-functest-smoke-grype'
1608 <<: *functest-params
1609 container: 'functest-smoke'
1611 - 'functest-{repo}-{container}-{tag}-grype'
1614 name: 'functest-opnfv-functest-benchmarking-grype'
1615 <<: *functest-params
1616 container: 'functest-benchmarking'
1618 - 'functest-{repo}-{container}-{tag}-grype'
1621 name: 'functest-opnfv-functest-vnf-grype'
1622 <<: *functest-params
1623 container: 'functest-vnf'
1625 - 'functest-{repo}-{container}-{tag}-grype'
1628 name: 'functest-opnfv-functest-smoke-cntt-grype'
1629 <<: *functest-params
1630 container: 'functest-smoke-cntt'
1632 - 'functest-{repo}-{container}-{tag}-grype'
1635 name: 'functest-opnfv-functest-benchmarking-cntt-grype'
1636 <<: *functest-params
1637 container: 'functest-benchmarking-cntt'
1639 - 'functest-{repo}-{container}-{tag}-grype'
1643 <<: *functest-params
1645 - 'functest-{tag}-docker'
1648 name: functest-docker
1657 regex: ^functest-[a-z0-9.]+-docker$
1660 name: functest-trivy
1669 regex: (?!functest-kubernetes)(?!functest-pi)^functest-[a-z-0-9.]+-trivy$
1672 name: functest-grype
1681 regex: (?!functest-kubernetes)(?!functest-pi)^functest-[a-z-0-9.]+-grype$