--- - functest-containers: &functest-containers name: 'functest-containers' repo: '{repo}' port: '{port}' container: '{container}' tag: '{tag}' - functest-params: &functest-params name: 'functest-params' repo: 'opnfv' port: tag: - latest: buildargs: branch: master slave: lf-virtual9 DASHBOARD_URL: http://172.30.13.94 dependency: 3.13 - leguer: buildargs: branch: stable/leguer slave: lf-virtual9 DASHBOARD_URL: http://172.30.13.94 dependency: 3.12 - kali: buildargs: branch: stable/kali slave: lf-pod4-3 DASHBOARD_URL: http://172.30.12.88 dependency: 3.11 - jerma: buildargs: branch: stable/jerma slave: lf-pod4 DASHBOARD_URL: http://172.30.12.83 dependency: 3.10 - iruya: buildargs: branch: stable/iruya slave: lf-virtual4 DASHBOARD_URL: http://172.30.13.89 dependency: 3.9 - hunter: buildargs: branch: stable/hunter slave: lf-virtual6 DASHBOARD_URL: http://172.30.13.91 dependency: 3.9 - functest-jobs: &functest-jobs name: 'functest-jobs' current-parameters: true - parameter: name: functest-slave parameters: - label: name: slave default: '{slave}' - parameter: name: functest-build_tag parameters: - random-string: name: build_tag - parameter: name: functest-EXTERNAL_NETWORK parameters: - string: name: EXTERNAL_NETWORK default: public - parameter: name: functest-VOLUME_DEVICE_NAME parameters: - string: name: VOLUME_DEVICE_NAME default: sdb - parameter: name: functest-IMAGE_PROPERTIES parameters: - string: name: IMAGE_PROPERTIES default: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi - functest-run-containers: &functest-run-containers name: 'functest-run-containers' <<: *functest-containers test: '{test}' privileged: '{privileged}' network: '{network}' DASHBOARD_URL: '{DASHBOARD_URL}' - builder: name: functest-pull-containers builders: - shell: | set +x if [ "{repo}" = "_" ]; then image={container}:{tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{tag} else image={repo}:{port}/{container}:{tag} fi sudo docker pull $image - builder: name: functest-run-containers builders: - shell: | set +x [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true if [ "{repo}" = "_" ]; then image={container}:{tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{tag} else image={repo}:{port}/{container}:{tag} fi sudo docker run --rm \ --privileged={privileged} \ --network={network} \ -e S3_ENDPOINT_URL=https://storage.googleapis.com \ -e S3_DST_URL=s3://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \ -e HTTP_DST_URL=http://artifacts.opnfv.org/functest/$BUILD_TAG/$JOB_NAME-$BUILD_ID \ -v /home/opnfv/functest/.boto:/root/.boto \ -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \ -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \ -e NODE_NAME=$slave \ -e BUILD_TAG=$BUILD_TAG \ -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \ -e EXTERNAL_NETWORK=$EXTERNAL_NETWORK \ -e VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME \ -e IMAGE_PROPERTIES=$IMAGE_PROPERTIES \ -e DASHBOARD_URL={DASHBOARD_URL} \ -v /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file \ -v /home/opnfv/functest/images:/home/opnfv/functest/images \ $image run_tests -t {test} -p -r - builder: name: functest-remove-images builders: - shell: | set +x if [ "{repo}" = "_" ]; then image={container}:{tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{tag} else image={repo}:{port}/{container}:{tag} fi sudo docker rmi $image || true - job-template: name: 'functest-{repo}-{container}-{tag}-pull' parameters: - functest-slave: slave: '{slave}' builders: - functest-pull-containers: <<: *functest-containers - project: name: 'functest-opnfv-functest-healthcheck-pull' <<: *functest-params container: 'functest-healthcheck' jobs: - 'functest-{repo}-{container}-{tag}-pull' - project: name: 'functest-opnfv-functest-smoke-pull' <<: *functest-params container: 'functest-smoke' jobs: - 'functest-{repo}-{container}-{tag}-pull' - project: name: 'functest-opnfv-functest-smoke-cntt-pull' <<: *functest-params container: 'functest-smoke-cntt' jobs: - 'functest-{repo}-{container}-{tag}-pull' - project: name: 'functest-opnfv-functest-benchmarking-pull' <<: *functest-params container: 'functest-benchmarking' jobs: - 'functest-{repo}-{container}-{tag}-pull' - project: name: 'functest-opnfv-functest-benchmarking-cntt-pull' <<: *functest-params container: 'functest-benchmarking-cntt' jobs: - 'functest-{repo}-{container}-{tag}-pull' - project: name: 'functest-opnfv-functest-vnf-pull' <<: *functest-params container: 'functest-vnf' jobs: - 'functest-{repo}-{container}-{tag}-pull' - job-template: name: 'functest-{repo}-{container}-{tag}-rmi' parameters: - functest-slave: slave: '{slave}' builders: - functest-remove-images: <<: *functest-containers - project: name: 'functest-opnfv-functest-healthcheck-rmi' <<: *functest-params container: 'functest-healthcheck' jobs: - 'functest-{repo}-{container}-{tag}-rmi' - project: name: 'functest-opnfv-functest-smoke-rmi' <<: *functest-params container: 'functest-smoke' jobs: - 'functest-{repo}-{container}-{tag}-rmi' - project: name: 'functest-opnfv-functest-smoke-cntt-rmi' <<: *functest-params container: 'functest-smoke-cntt' jobs: - 'functest-{repo}-{container}-{tag}-rmi' - project: name: 'functest-opnfv-functest-benchmarking-rmi' <<: *functest-params container: 'functest-benchmarking' jobs: - 'functest-{repo}-{container}-{tag}-rmi' - project: name: 'functest-opnfv-functest-benchmarking-cntt-rmi' <<: *functest-params container: 'functest-benchmarking-cntt' jobs: - 'functest-{repo}-{container}-{tag}-rmi' - project: name: 'functest-opnfv-functest-vnf-rmi' <<: *functest-params container: 'functest-vnf' jobs: - 'functest-{repo}-{container}-{tag}-rmi' - job-template: name: 'functest-{repo}-{container}-{tag}-{test}-run' parameters: - functest-slave: slave: '{slave}' - functest-build_tag: build_tag: '' - functest-EXTERNAL_NETWORK: EXTERNAL_NETWORK: public - functest-VOLUME_DEVICE_NAME: VOLUME_DEVICE_NAME: sdb - functest-IMAGE_PROPERTIES: IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi builders: - functest-run-containers: <<: *functest-run-containers - project: name: 'functest-opnfv-functest-healthcheck' <<: *functest-params container: 'functest-healthcheck' test: - connection_check - tenantnetwork1 - tenantnetwork2 - vmready1 - vmready2 - singlevm1 - singlevm2 - vping_ssh - vping_userdata - cinder_test - odl - tempest_smoke - tempest_horizon privileged: 'false' network: bridge jobs: - 'functest-{repo}-{container}-{tag}-{test}-run' - project: name: 'functest-opnfv-functest-smoke' <<: *functest-params container: 'functest-smoke' test: - tempest_neutron - tempest_cinder - tempest_keystone - tempest_heat - tempest_telemetry - rally_sanity - refstack_defcore - refstack_compute - refstack_object - refstack_platform - tempest_full - tempest_scenario - tempest_slow - patrole - patrole_admin - patrole_member - patrole_reader - networking-bgpvpn - networking-sfc - tempest_barbican - tempest_octavia - tempest_cyborg privileged: 'false' network: bridge exclude: - {'tag': 'latest', 'test': 'refstack_defcore'} - {'tag': 'latest', 'test': 'networking-bgpvpn'} - {'tag': 'latest', 'test': 'networking-sfc'} - {'tag': 'latest', 'test': 'patrole'} - {'tag': 'leguer', 'test': 'refstack_defcore'} - {'tag': 'leguer', 'test': 'networking-bgpvpn'} - {'tag': 'leguer', 'test': 'networking-sfc'} - {'tag': 'leguer', 'test': 'patrole'} - {'tag': 'kali', 'test': 'refstack_defcore'} - {'tag': 'kali', 'test': 'networking-bgpvpn'} - {'tag': 'kali', 'test': 'networking-sfc'} - {'tag': 'kali', 'test': 'patrole_admin'} - {'tag': 'kali', 'test': 'patrole_member'} - {'tag': 'kali', 'test': 'patrole_reader'} - {'tag': 'jerma', 'test': 'refstack_defcore'} - {'tag': 'jerma', 'test': 'networking-bgpvpn'} - {'tag': 'jerma', 'test': 'networking-sfc'} - {'tag': 'jerma', 'test': 'patrole_admin'} - {'tag': 'jerma', 'test': 'patrole_member'} - {'tag': 'jerma', 'test': 'patrole_reader'} - {'tag': 'jerma', 'test': 'tempest_cyborg'} - {'tag': 'iruya', 'test': 'refstack_defcore'} - {'tag': 'iruya', 'test': 'patrole_admin'} - {'tag': 'iruya', 'test': 'patrole_member'} - {'tag': 'iruya', 'test': 'patrole_reader'} - {'tag': 'iruya', 'test': 'tempest_cyborg'} - {'tag': 'hunter', 'test': 'refstack_compute'} - {'tag': 'hunter', 'test': 'refstack_object'} - {'tag': 'hunter', 'test': 'refstack_platform'} - {'tag': 'hunter', 'test': 'tempest_octavia'} - {'tag': 'hunter', 'test': 'tempest_telemetry'} - {'tag': 'hunter', 'test': 'patrole_admin'} - {'tag': 'hunter', 'test': 'patrole_member'} - {'tag': 'hunter', 'test': 'patrole_reader'} - {'tag': 'hunter', 'test': 'tempest_cyborg'} jobs: - 'functest-{repo}-{container}-{tag}-{test}-run' - project: name: 'functest-opnfv-functest-smoke-cntt' <<: *functest-params container: 'functest-smoke-cntt' test: - tempest_neutron_cntt - tempest_cinder_cntt - tempest_keystone_cntt - tempest_heat_cntt - rally_sanity_cntt - tempest_full_cntt - tempest_scenario_cntt - tempest_slow_cntt privileged: 'false' network: bridge jobs: - 'functest-{repo}-{container}-{tag}-{test}-run' - project: name: 'functest-opnfv-functest-benchmarking' <<: *functest-params container: 'functest-benchmarking' test: - rally_full - rally_jobs - vmtp - shaker privileged: 'false' network: bridge jobs: - 'functest-{repo}-{container}-{tag}-{test}-run' - project: name: 'functest-opnfv-functest-benchmarking-cntt' <<: *functest-params container: 'functest-benchmarking-cntt' test: - rally_full_cntt - rally_jobs_cntt privileged: 'false' network: bridge jobs: - 'functest-{repo}-{container}-{tag}-{test}-run' - project: name: 'functest-opnfv-functest-vnf' <<: *functest-params container: 'functest-vnf' test: - cloudify - cloudify_ims - heat_ims - vyos_vrouter - juju_epc privileged: 'false' network: bridge jobs: - 'functest-{repo}-{container}-{tag}-{test}-run' - builder: name: functest-zip builders: - shell: | set +x [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true if [ "{repo}" = "_" ]; then image={container}:{tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{tag} else image={repo}:{port}/{container}:{tag} fi sudo docker run --rm \ -e S3_ENDPOINT_URL=https://storage.googleapis.com \ -e S3_DST_URL=s3://artifacts.opnfv.org/functest \ -e HTTP_DST_URL=http://artifacts.opnfv.org/functest \ -v /home/opnfv/functest/.boto:/root/.boto \ -e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \ -e TEST_DB_EXT_URL=http://testresults.opnfv.org/test/api/v1/results \ -e BUILD_TAG=$BUILD_TAG \ -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \ -e EXTERNAL_NETWORK=$EXTERNAL_NETWORK \ -e VOLUME_DEVICE_NAME=$VOLUME_DEVICE_NAME \ -e IMAGE_PROPERTIES=$IMAGE_PROPERTIES \ -v /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file \ -v /home/opnfv/functest/images:/home/opnfv/functest/images \ $image zip_campaign - job-template: name: 'functest-{tag}-zip' parameters: - functest-slave: slave: '{slave}' - functest-build_tag: build_tag: '' - functest-EXTERNAL_NETWORK: EXTERNAL_NETWORK: public - functest-VOLUME_DEVICE_NAME: VOLUME_DEVICE_NAME: sdb - functest-IMAGE_PROPERTIES: IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi builders: - functest-zip: <<: *functest-containers - project: name: 'functest-{tag}-zip' <<: *functest-params container: 'functest-healthcheck' jobs: - 'functest-{tag}-zip' - job-template: name: 'functest-{tag}-daily' project-type: multijob triggers: - timed: '@weekly' parameters: - functest-slave: slave: '{slave}' - functest-build_tag: build_tag: '' - functest-EXTERNAL_NETWORK: EXTERNAL_NETWORK: public - functest-VOLUME_DEVICE_NAME: VOLUME_DEVICE_NAME: sdb - functest-IMAGE_PROPERTIES: IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi properties: - build-blocker: use-build-blocker: true blocking-level: 'NODE' blocking-jobs: - '^functest-{tag}-(daily|docker|review)$' builders: - multijob: name: remove former images projects: - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-rmi' <<: *functest-jobs - multijob: name: pull containers projects: - name: 'functest-opnfv-functest-healthcheck-{tag}-pull' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-pull' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-pull' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-pull' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-pull' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-pull' <<: *functest-jobs - multijob: name: opnfv/functest-healthcheck:{tag} projects: - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run' <<: *functest-jobs - multijob: name: opnfv/functest-smoke:{tag} projects: - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-refstack_defcore-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-patrole-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-networking-bgpvpn-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-networking-sfc-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run' <<: *functest-jobs - multijob: name: opnfv/functest-smoke-cntt:{tag} projects: - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run' <<: *functest-jobs - multijob: name: opnfv/functest-benchmarking:{tag} projects: - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run' <<: *functest-jobs - multijob: name: opnfv/functest-benchmarking-cntt:{tag} projects: - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run' <<: *functest-jobs - multijob: name: opnfv/functest-vnf:{tag} projects: - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run' <<: *functest-jobs - multijob: name: dump all campaign data projects: - name: 'functest-{tag}-zip' <<: *functest-jobs - project: name: 'functest-daily' <<: *functest-params jobs: - 'functest-{tag}-daily' - view: name: functest view-type: list columns: - status - weather - job - last-success - last-failure - last-duration regex: ^functest-[a-z0-9.]+-daily$ - functest-build-containers: &functest-build-containers name: 'functest-build-containers' <<: *functest-containers ref_arg: '{ref_arg}' path: '{path}' buildargs: '{buildargs}' - builder: name: functest-build-containers builders: - shell: | set +x if [ "{repo}" = "_" ]; then image={container}:{tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{tag} else image={repo}:{port}/{container}:{tag} fi build_args="" if [ "{buildargs}" != "None" ]; then build_args="{buildargs} " fi if [ "{ref_arg}" != "None" ]; then build_args="--build-arg {ref_arg}={ref}" fi cd {path} sudo docker build $build_args \ --pull=false --no-cache --force-rm=true \ -t $image . - scm: name: functest-scm scm: - git: url: 'https://gerrit.opnfv.org/gerrit/functest' refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*' branches: - '{ref}' - functest-dep: &functest-dep name: 'functest-containers' repo: '{repo}' port: '{port}' tag: '{tag}' dependency: '{dependency}' - builder: name: functest-pull-dep-images builders: - shell: | set +x if [ "_" = "_" ]; then image=alpine:{dependency} elif [ "_" = "None" ]; then image=_/alpine:{dependency} else image=_:/alpine{dependency} fi sudo docker pull $image || true - builder: name: functest-remove-dep-images builders: - shell: | set +x if [ "_" = "_" ]; then image=alpine:{dependency} elif [ "_" = "None" ]; then image=_/alpine:{dependency} else image=_:/alpine{dependency} fi sudo docker rmi $image || true - job-template: name: 'functest-{repo}-{tag}-dep-pull' parameters: - functest-slave: slave: '{slave}' builders: - functest-pull-dep-images: <<: *functest-dep - project: name: 'functest-{repo}-{tag}-dep-pull' <<: *functest-params jobs: - 'functest-{repo}-{tag}-dep-pull' - job-template: name: 'functest-{repo}-{tag}-dep-rmi' parameters: - functest-slave: slave: '{slave}' builders: - functest-remove-dep-images: <<: *functest-dep - project: name: 'functest-{repo}-{tag}-dep-rmi' <<: *functest-params jobs: - 'functest-{repo}-{tag}-dep-rmi' - builder: name: functest-tox builders: - shell: | set +x sudo apt-get update && sudo apt-get install software-properties-common gpg -y sudo add-apt-repository -y ppa:deadsnakes/ppa sudo apt-get update && sudo apt-get install python3.8 python3.8-dev \ python3.8-distutils \ python3.7 python3.7-dev python3.6 python3.6-dev \ python python-dev python3-pip enchant -y sudo pip3 install tox tox-pip-version tox - job-template: name: 'functest-{tag}-tox' scm: - functest-scm: ref: $GERRIT_REFSPEC triggers: - functest-patchset-created: branch: '{branch}' parameters: - functest-slave: slave: '{slave}' builders: - functest-tox: - project: name: functest-tox <<: *functest-params jobs: - 'functest-{tag}-tox' - job-template: name: 'functest-{repo}-{container}-{tag}-gate' parameters: - functest-slave: slave: '{slave}' scm: - functest-scm: ref: $GERRIT_REFSPEC builders: - functest-build-containers: <<: *functest-build-containers ref: $GERRIT_REFSPEC buildargs: '{buildargs}' - project: name: functest-opnfv-functest-core-{tag}-gate <<: *functest-params container: functest-core ref_arg: BRANCH path: docker/core jobs: - 'functest-{repo}-{container}-{tag}-gate' - project: name: functest-opnfv-functest-tempest-{tag}-gate <<: *functest-params container: functest-tempest ref_arg: BRANCH path: docker/tempest exclude: - {'tag': 'latest'} - {'tag': 'leguer'} - {'tag': 'kali'} - {'tag': 'jerma'} jobs: - 'functest-{repo}-{container}-{tag}-gate' - project: name: functest-opnfv-functest-healthcheck-{tag}-gate <<: *functest-params container: functest-healthcheck ref_arg: BRANCH path: docker/healthcheck jobs: - 'functest-{repo}-{container}-{tag}-gate' - project: name: functest-opnfv-functest-smoke-{tag}-gate <<: *functest-params container: functest-smoke ref_arg: BRANCH path: docker/smoke jobs: - 'functest-{repo}-{container}-{tag}-gate' - project: name: functest-opnfv-functest-benchmarking-{tag}-gate <<: *functest-params container: functest-benchmarking ref_arg: BRANCH path: docker/benchmarking jobs: - 'functest-{repo}-{container}-{tag}-gate' - project: name: functest-opnfv-functest-vnf-{tag}-gate <<: *functest-params container: functest-vnf ref_arg: path: docker/vnf jobs: - 'functest-{repo}-{container}-{tag}-gate' - project: name: functest-opnfv-functest-smoke-cntt-{tag}-gate <<: *functest-params container: functest-smoke-cntt ref_arg: BRANCH path: docker/smoke-cntt jobs: - 'functest-{repo}-{container}-{tag}-gate' - project: name: functest-opnfv-functest-benchmarking-cntt-{tag}-gate <<: *functest-params container: functest-benchmarking-cntt ref_arg: BRANCH path: docker/benchmarking-cntt jobs: - 'functest-{repo}-{container}-{tag}-gate' - trigger: name: functest-patchset-created triggers: - gerrit: trigger-on: - patchset-created-event - comment-added-contains-event: comment-contains-value: 'recheck' - comment-added-contains-event: comment-contains-value: 'reverify' projects: - project-compare-type: 'ANT' project-pattern: 'functest' branches: - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' - job-template: name: 'functest-{tag}-review' project-type: multijob triggers: - functest-patchset-created: branch: '{branch}' parameters: - functest-slave: slave: '{slave}' - functest-build_tag: build_tag: '' - functest-EXTERNAL_NETWORK: EXTERNAL_NETWORK: public - functest-VOLUME_DEVICE_NAME: VOLUME_DEVICE_NAME: sdb - functest-IMAGE_PROPERTIES: IMAGE_PROPERTIES: hw_scsi_model:virtio-scsi,hw_disk_bus:scsi properties: - build-blocker: use-build-blocker: true blocking-level: 'NODE' blocking-jobs: - '^functest-{tag}-(daily|docker|review)$' builders: - multijob: name: remove former images projects: - name: 'functest-opnfv-functest-healthcheck-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rmi' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-rmi' <<: *functest-jobs - multijob: name: remove dependency projects: - name: 'functest-{repo}-{tag}-dep-rmi' <<: *functest-jobs - multijob: name: pull dependency projects: - name: 'functest-{repo}-{tag}-dep-pull' <<: *functest-jobs - multijob: name: build opnfv/functest-core projects: - name: 'functest-opnfv-functest-core-{tag}-gate' <<: *functest-jobs - multijob: name: build opnfv/functest-tempest projects: - name: 'functest-opnfv-functest-tempest-{tag}-gate' <<: *functest-jobs - multijob: name: build containers projects: - name: 'functest-opnfv-functest-healthcheck-{tag}-gate' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-gate' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-gate' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-gate' <<: *functest-jobs - multijob: name: build cntt containers projects: - name: 'functest-opnfv-functest-smoke-cntt-{tag}-gate' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-gate' <<: *functest-jobs - multijob: name: opnfv/functest-healthcheck:{tag} projects: - name: 'functest-opnfv-functest-healthcheck-{tag}-connection_check-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready1-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-vmready2-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm1-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-singlevm2-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_ssh-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-vping_userdata-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-cinder_test-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-odl-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_smoke-run' <<: *functest-jobs - name: 'functest-opnfv-functest-healthcheck-{tag}-tempest_horizon-run' <<: *functest-jobs - multijob: name: opnfv/functest-smoke:{tag} projects: - name: 'functest-opnfv-functest-smoke-{tag}-tempest_neutron-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cinder-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_keystone-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_heat-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_telemetry-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-rally_sanity-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-refstack_defcore-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-refstack_compute-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-refstack_object-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-refstack_platform-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_full-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_scenario-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_slow-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-patrole-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-patrole_admin-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-patrole_member-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-patrole_reader-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-networking-bgpvpn-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-networking-sfc-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_barbican-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_octavia-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-tempest_cyborg-run' <<: *functest-jobs - multijob: name: opnfv/functest-smoke-cntt:{tag} projects: - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_neutron_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_cinder_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_keystone_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_heat_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-rally_sanity_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_full_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_scenario_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-cntt-{tag}-tempest_slow_cntt-run' <<: *functest-jobs - multijob: name: opnfv/functest-benchmarking:{tag} projects: - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_full-run' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-rally_jobs-run' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-vmtp-run' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-shaker-run' <<: *functest-jobs - multijob: name: opnfv/functest-benchmarking-cntt:{tag} projects: - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_full_cntt-run' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-rally_jobs_cntt-run' <<: *functest-jobs - multijob: name: opnfv/functest-vnf:{tag} projects: - name: 'functest-opnfv-functest-vnf-{tag}-cloudify-run' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-cloudify_ims-run' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-heat_ims-run' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-vyos_vrouter-run' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-juju_epc-run' <<: *functest-jobs - project: name: 'functest-review' <<: *functest-params jobs: - 'functest-{tag}-review' - view: name: functest-review view-type: list columns: - status - weather - job - last-success - last-failure - last-duration regex: ^functest-[a-z0-9.]+-review$ - view: name: functest-tox view-type: list columns: - status - weather - job - last-success - last-failure - last-duration regex: ^functest-[a-z0-9.]+-tox$ - builder: name: functest-push-containers builders: - shell: | set +x if [ "{repo}" = "_" ]; then image={container}:{tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{tag} else image={repo}:{port}/{container}:{tag} fi sudo docker push $image - trigger: name: functest-commit triggers: - pollscm: cron: "*/30 * * * *" - job-template: name: 'functest-{repo}-{container}-{tag}-build' parameters: - functest-slave: slave: '{slave}' scm: - functest-scm: ref: '{branch}' builders: - functest-build-containers: <<: *functest-build-containers ref: '{branch}' buildargs: '{buildargs}' - functest-push-containers: <<: *functest-build-containers ref: '{branch}' - project: name: functest-opnfv-functest-core-{tag}-build <<: *functest-params container: functest-core ref_arg: BRANCH path: docker/core jobs: - 'functest-{repo}-{container}-{tag}-build' - project: name: functest-opnfv-functest-tempest-{tag}-build <<: *functest-params container: functest-tempest ref_arg: BRANCH path: docker/tempest exclude: - {'tag': 'latest'} - {'tag': 'leguer'} - {'tag': 'kali'} - {'tag': 'jerma'} jobs: - 'functest-{repo}-{container}-{tag}-build' - project: name: functest-opnfv-functest-healthcheck-{tag}-build <<: *functest-params container: functest-healthcheck ref_arg: BRANCH path: docker/healthcheck jobs: - 'functest-{repo}-{container}-{tag}-build' - project: name: functest-opnfv-functest-smoke-{tag}-build <<: *functest-params container: functest-smoke ref_arg: BRANCH path: docker/smoke jobs: - 'functest-{repo}-{container}-{tag}-build' - project: name: functest-opnfv-functest-benchmarking-{tag}-build <<: *functest-params container: functest-benchmarking ref_arg: BRANCH path: docker/benchmarking jobs: - 'functest-{repo}-{container}-{tag}-build' - project: name: functest-opnfv-functest-vnf-{tag}-build <<: *functest-params container: functest-vnf ref_arg: path: docker/vnf jobs: - 'functest-{repo}-{container}-{tag}-build' - project: name: functest-opnfv-functest-smoke-cntt-{tag}-build <<: *functest-params container: functest-smoke-cntt ref_arg: BRANCH path: docker/smoke-cntt jobs: - 'functest-{repo}-{container}-{tag}-build' - project: name: functest-opnfv-functest-benchmarking-cntt-{tag}-build <<: *functest-params container: functest-benchmarking-cntt ref_arg: BRANCH path: docker/benchmarking-cntt jobs: - 'functest-{repo}-{container}-{tag}-build' - job-template: name: 'functest-{tag}-docker' project-type: multijob triggers: - functest-commit scm: - functest-scm: ref: '{branch}' parameters: - functest-slave: slave: '{slave}' properties: - build-blocker: use-build-blocker: true blocking-level: 'NODE' blocking-jobs: - '^functest-{tag}-(daily|docker|review)$' builders: - multijob: name: remove dependency projects: - name: 'functest-{repo}-{tag}-dep-rmi' <<: *functest-jobs - multijob: name: pull dependency projects: - name: 'functest-{repo}-{tag}-dep-pull' <<: *functest-jobs - multijob: name: build opnfv/functest-core projects: - name: 'functest-opnfv-functest-core-{tag}-build' <<: *functest-jobs - multijob: name: build opnfv/functest-tempest projects: - name: 'functest-opnfv-functest-tempest-{tag}-build' <<: *functest-jobs - multijob: name: build containers projects: - name: 'functest-opnfv-functest-healthcheck-{tag}-build' <<: *functest-jobs - name: 'functest-opnfv-functest-smoke-{tag}-build' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-{tag}-build' <<: *functest-jobs - name: 'functest-opnfv-functest-vnf-{tag}-build' <<: *functest-jobs - multijob: name: build cntt containers projects: - name: 'functest-opnfv-functest-smoke-cntt-{tag}-build' <<: *functest-jobs - name: 'functest-opnfv-functest-benchmarking-cntt-{tag}-build' <<: *functest-jobs - builder: name: functest-trivy builders: - shell: | sudo apt-get update && sudo apt-get install curl -y curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b . if [ "{repo}" = "_" ]; then image={container}:{tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{tag} else image={repo}:{port}/{container}:{tag} fi ./trivy --exit-code 1 $image - job-template: name: 'functest-{repo}-{container}-{tag}-trivy' triggers: - timed: '@weekly' parameters: - functest-slave: slave: '{slave}' builders: - functest-trivy: <<: *functest-containers - project: name: 'functest-opnfv-functest-core-trivy' <<: *functest-params container: 'functest-core' jobs: - 'functest-{repo}-{container}-{tag}-trivy' - project: name: 'functest-opnfv-functest-tempest-trivy' <<: *functest-params container: 'functest-tempest' jobs: - 'functest-{repo}-{container}-{tag}-trivy' - project: name: 'functest-opnfv-functest-healthcheck-trivy' <<: *functest-params container: 'functest-healthcheck' jobs: - 'functest-{repo}-{container}-{tag}-trivy' - project: name: 'functest-opnfv-functest-smoke-trivy' <<: *functest-params container: 'functest-smoke' jobs: - 'functest-{repo}-{container}-{tag}-trivy' - project: name: 'functest-opnfv-functest-benchmarking-trivy' <<: *functest-params container: 'functest-benchmarking' jobs: - 'functest-{repo}-{container}-{tag}-trivy' - project: name: 'functest-opnfv-functest-vnf-trivy' <<: *functest-params container: 'functest-vnf' jobs: - 'functest-{repo}-{container}-{tag}-trivy' - project: name: 'functest-opnfv-functest-smoke-cntt-trivy' <<: *functest-params container: 'functest-smoke-cntt' jobs: - 'functest-{repo}-{container}-{tag}-trivy' - project: name: 'functest-opnfv-functest-benchmarking-cntt-trivy' <<: *functest-params container: 'functest-benchmarking-cntt' jobs: - 'functest-{repo}-{container}-{tag}-trivy' - project: name: 'functest' <<: *functest-params jobs: - 'functest-{tag}-docker' - view: name: functest-docker view-type: list columns: - status - weather - job - last-success - last-failure - last-duration regex: ^functest-[a-z0-9.]+-docker$ - view: name: functest-trivy view-type: list columns: - status - weather - job - last-success - last-failure - last-duration regex: (?!functest-kubernetes)(?!functest-pi)^functest-[a-z-0-9.]+-trivy$