--- - airship-jobs: &airship-jobs name: 'airship-jobs' current-parameters: true - airship-params: &airship-params name: 'airship-params' repo: 'opnfv' port: tag: - latest: branch: master slave: intel-pod17 functest_tag: iruya - parameter: name: airship-slave parameters: - label: name: slave default: '{slave}' - parameter: name: airship-build_tag parameters: - random-string: name: build_tag - parameter: name: airship-DEBUG parameters: - string: name: DEBUG default: 'true' - parameter: name: airship-EXTERNAL_NETWORK parameters: - string: name: EXTERNAL_NETWORK default: public - airship-containers: &airship-containers name: 'airship-containers' repo: '{repo}' port: '{port}' container: '{container}' functest_tag: '{functest_tag}' - airship-run-containers: &airship-run-containers name: 'airship-run-containers' <<: *airship-containers test: '{test}' - builder: name: airship-pull-containers builders: - shell: | set +x if [ "{repo}" = "_" ]; then image={container}:{functest_tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{functest_tag} else image={repo}:{port}/{container}:{functest_tag} fi sudo docker pull $image - builder: name: airship-run-containers builders: - shell: | set +x [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true if [ "{repo}" = "_" ]; then image={container}:{functest_tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{functest_tag} else image={repo}:{port}/{container}:{functest_tag} fi sudo docker run --rm --dns 172.17.0.2 \ -e S3_ENDPOINT_URL=https://storage.googleapis.com \ -e S3_DST_URL=s3://artifacts.opnfv.org/airship/$BUILD_TAG/$JOB_NAME-$BUILD_ID \ -e HTTP_DST_URL=http://artifacts.opnfv.org/airship/$BUILD_TAG/$JOB_NAME-$BUILD_ID \ -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 INSTALLER_TYPE=airship \ -e BUILD_TAG=$BUILD_TAG \ -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \ -v /home/opnfv/functest/.boto:/root/.boto \ -e DEBUG=$DEBUG \ -e EXTERNAL_NETWORK=$EXTERNAL_NETWORK \ -e DEPLOY_SCENARIO=ovs \ -e FLAVOR_EXTRA_SPECS=hw:mem_page_size:large \ -e NEW_USER_ROLE=_member_ \ -e NO_TENANT_NETWORK=true \ -v /home/opnfv/functest/openstack.creds:/home/opnfv/functest/conf/env_file \ -v /home/opnfv/functest/images:/home/opnfv/functest/images \ -v /home/opnfv/functest/tempest_conf.yaml:/usr/lib/python3.6/\ site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml \ -v /home/opnfv/functest/singlevm.py:/usr/lib/python3.6/\ site-packages/functest/core/singlevm.py \ $image run_tests -t {test} -r -p - builder: name: airship-remove-images builders: - shell: | set +x if [ "{repo}" = "_" ]; then image={container}:{functest_tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{functest_tag} else image={repo}:{port}/{container}:{functest_tag} fi sudo docker rmi $image || true - builder: name: airship-deploy builders: - shell: | set +x export TERM_OPTS=" " sudo -H -E -u ubuntu bash -c 'tools/deploy.sh $slave deploy_site' - scm: name: airship-scm scm: - git: url: https://gerrit.opnfv.org/gerrit/airship refspec: '+refs/changes/*:refs/changes/*' branches: - '{ref}' - parameter: name: airship-branch parameters: - string: name: branch default: '{branch}' - job-template: name: 'airship-deploy-daily-{tag}' parameters: - airship-slave: slave: '{slave}' - airship-branch: branch: '{branch}' scm: - airship-scm: ref: $branch builders: - airship-deploy - job-template: name: 'airship-deploy-gate-{tag}' parameters: - airship-slave: slave: '{slave}' scm: - airship-scm: ref: $GERRIT_REFSPEC builders: - airship-deploy - project: name: 'airship-deploy' <<: *airship-params jobs: - 'airship-deploy-daily-{tag}' - 'airship-deploy-gate-{tag}' - job-template: name: 'airship-{repo}-{container}-{tag}-pull' parameters: - airship-slave: slave: '{slave}' builders: - airship-pull-containers: <<: *airship-containers - project: name: 'airship-opnfv-functest-healthcheck-pull' <<: *airship-params container: 'functest-healthcheck' jobs: - 'airship-{repo}-{container}-{tag}-pull' - project: name: 'airship-opnfv-functest-smoke-pull' <<: *airship-params container: 'functest-smoke' jobs: - 'airship-{repo}-{container}-{tag}-pull' - project: name: 'airship-opnfv-functest-benchmarking-pull' <<: *airship-params container: 'functest-benchmarking' jobs: - 'airship-{repo}-{container}-{tag}-pull' - project: name: 'airship-opnfv-functest-vnf-pull' <<: *airship-params container: 'functest-vnf' jobs: - 'airship-{repo}-{container}-{tag}-pull' - job-template: name: 'airship-{repo}-{container}-{tag}-rmi' parameters: - airship-slave: slave: '{slave}' builders: - airship-remove-images: <<: *airship-containers - project: name: 'airship-opnfv-functest-healthcheck-rmi' <<: *airship-params container: 'functest-healthcheck' jobs: - 'airship-{repo}-{container}-{tag}-rmi' - project: name: 'airship-opnfv-functest-smoke-rmi' <<: *airship-params container: 'functest-smoke' jobs: - 'airship-{repo}-{container}-{tag}-rmi' - project: name: 'airship-opnfv-functest-benchmarking-rmi' <<: *airship-params container: 'functest-benchmarking' jobs: - 'airship-{repo}-{container}-{tag}-rmi' - project: name: 'airship-opnfv-functest-vnf-rmi' <<: *airship-params container: 'functest-vnf' jobs: - 'airship-{repo}-{container}-{tag}-rmi' - job-template: name: 'airship-{repo}-{container}-{tag}-{test}-run' parameters: - airship-slave: slave: '{slave}' - airship-build_tag: build_tag: '' - airship-DEBUG: DEBUG: 'true' - airship-EXTERNAL_NETWORK: EXTERNAL_NETWORK: public builders: - airship-run-containers: <<: *airship-run-containers - project: name: 'airship-opnfv-functest-healthcheck' <<: *airship-params container: 'functest-healthcheck' test: - connection_check - tenantnetwork1 - tenantnetwork2 - vmready1 - vmready2 - singlevm1 - singlevm2 - vping_ssh - vping_userdata - cinder_test - odl - tempest_smoke - tempest_horizon jobs: - 'airship-{repo}-{container}-{tag}-{test}-run' - project: name: 'airship-opnfv-functest-smoke' <<: *airship-params container: 'functest-smoke' test: - tempest_neutron - tempest_cinder - tempest_keystone - tempest_heat - tempest_telemetry - rally_sanity - refstack_compute - refstack_object - refstack_platform - tempest_full - tempest_scenario - tempest_slow - patrole - networking-bgpvpn - networking-sfc - tempest_barbican - tempest_octavia jobs: - 'airship-{repo}-{container}-{tag}-{test}-run' - project: name: 'airship-opnfv-functest-benchmarking' <<: *airship-params container: 'functest-benchmarking' test: - rally_full - rally_jobs - vmtp - shaker jobs: - 'airship-{repo}-{container}-{tag}-{test}-run' - project: name: 'airship-opnfv-functest-vnf' <<: *airship-params container: 'functest-vnf' test: - cloudify - cloudify_ims - heat_ims - vyos_vrouter - juju_epc jobs: - 'airship-{repo}-{container}-{tag}-{test}-run' - builder: name: airship-zip builders: - shell: | set +x [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true if [ "{repo}" = "_" ]; then image={container}:{functest_tag} elif [ "{port}" = "None" ]; then image={repo}/{container}:{functest_tag} else image={repo}:{port}/{container}:{functest_tag} fi sudo docker run --rm --dns 172.17.0.2 \ -e S3_ENDPOINT_URL=https://storage.googleapis.com \ -e S3_DST_URL=s3://artifacts.opnfv.org/airship \ -e HTTP_DST_URL=http://artifacts.opnfv.org/airship/ \ -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 \ -e DEPLOY_SCENARIO=ovs \ -e FLAVOR_EXTRA_SPECS=hw:mem_page_size:large \ -e NEW_USER_ROLE=_member_ \ -e NO_TENANT_NETWORK=true \ -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \ -v /home/opnfv/functest/.boto:/root/.boto \ $image zip_campaign - job-template: name: 'airship-{tag}-zip' parameters: - airship-build_tag: build_tag: '' builders: - airship-zip: <<: *airship-containers - project: name: 'airship-{tag}-zip' <<: *airship-params container: 'functest-healthcheck' jobs: - 'airship-{tag}-zip' - job-template: name: 'airship-{tag}-daily' project-type: multijob triggers: - timed: '0 6 * * 3,6' parameters: - airship-slave: slave: '{slave}' - airship-build_tag: build_tag: '' - airship-branch: branch: 'master' - airship-DEBUG: DEBUG: 'true' - airship-EXTERNAL_NETWORK: EXTERNAL_NETWORK: public properties: - build-blocker: use-build-blocker: true blocking-level: 'NODE' blocking-jobs: - '^airship-{tag}-(daily|gate)$' builders: - multijob: name: deploy projects: - name: 'airship-deploy-daily-{tag}' <<: *airship-jobs - multijob: name: remove former images projects: - name: 'airship-opnfv-functest-healthcheck-{tag}-rmi' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-rmi' <<: *airship-jobs - name: 'airship-opnfv-functest-benchmarking-{tag}-rmi' <<: *airship-jobs - name: 'airship-opnfv-functest-vnf-{tag}-rmi' <<: *airship-jobs - multijob: name: pull containers projects: - name: 'airship-opnfv-functest-healthcheck-{tag}-pull' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-pull' <<: *airship-jobs - name: 'airship-opnfv-functest-benchmarking-{tag}-pull' <<: *airship-jobs - name: 'airship-opnfv-functest-vnf-{tag}-pull' <<: *airship-jobs - multijob: name: opnfv/functest-healthcheck:{functest_tag} condition: ALWAYS projects: - name: 'airship-opnfv-functest-healthcheck-{tag}-connection_check-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-tenantnetwork1-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-tenantnetwork2-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-vmready1-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-vmready2-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-singlevm1-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-singlevm2-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-vping_ssh-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-vping_userdata-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-cinder_test-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-odl-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-tempest_smoke-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-tempest_horizon-run' <<: *airship-jobs - multijob: name: opnfv/functest-smoke:{functest_tag} condition: ALWAYS projects: - name: 'airship-opnfv-functest-smoke-{tag}-tempest_neutron-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_cinder-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_keystone-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_heat-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_telemetry-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-rally_sanity-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-refstack_compute-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-refstack_object-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-refstack_platform-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_full-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_scenario-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_slow-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-patrole-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-networking-bgpvpn-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-networking-sfc-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_barbican-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-tempest_octavia-run' <<: *airship-jobs - multijob: name: opnfv/functest-benchmarking:{functest_tag} condition: ALWAYS projects: - name: 'airship-opnfv-functest-benchmarking-{tag}-rally_full-run' <<: *airship-jobs - name: 'airship-opnfv-functest-benchmarking-{tag}-rally_jobs-run' <<: *airship-jobs - name: 'airship-opnfv-functest-benchmarking-{tag}-vmtp-run' <<: *airship-jobs - name: 'airship-opnfv-functest-benchmarking-{tag}-shaker-run' <<: *airship-jobs - multijob: name: opnfv/functest-vnf:{functest_tag} condition: ALWAYS execution-type: SEQUENTIALLY projects: - name: 'airship-opnfv-functest-vnf-{tag}-cloudify-run' <<: *airship-jobs - name: 'airship-opnfv-functest-vnf-{tag}-cloudify_ims-run' <<: *airship-jobs - name: 'airship-opnfv-functest-vnf-{tag}-heat_ims-run' <<: *airship-jobs - name: 'airship-opnfv-functest-vnf-{tag}-vyos_vrouter-run' <<: *airship-jobs - name: 'airship-opnfv-functest-vnf-{tag}-juju_epc-run' <<: *airship-jobs - multijob: name: dump all campaign data projects: - name: 'airship-{tag}-zip' <<: *airship-jobs - trigger: name: airship-patchset-created triggers: - gerrit: server-name: 'gerrit.opnfv.org' 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: 'airship' branches: - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' skip-vote: successful: false failed: false unstable: false notbuilt: false - job-template: name: 'airship-{tag}-gate' project-type: multijob triggers: - airship-patchset-created: branch: '{branch}' parameters: - airship-slave: slave: '{slave}' - airship-build_tag: build_tag: '' - airship-DEBUG: DEBUG: 'true' - airship-EXTERNAL_NETWORK: EXTERNAL_NETWORK: public properties: - build-blocker: use-build-blocker: true blocking-level: 'NODE' blocking-jobs: - '^airship-{tag}-(daily|gate)$' builders: - multijob: name: deploy projects: - name: 'airship-deploy-gate-{tag}' <<: *airship-jobs - multijob: name: remove former images projects: - name: 'airship-opnfv-functest-healthcheck-{tag}-rmi' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-rmi' <<: *airship-jobs - multijob: name: pull containers projects: - name: 'airship-opnfv-functest-healthcheck-{tag}-pull' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-pull' <<: *airship-jobs - multijob: name: opnfv/functest-healthcheck:{functest_tag} projects: - name: 'airship-opnfv-functest-healthcheck-{tag}-connection_check-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-vmready1-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-vmready2-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-singlevm1-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-singlevm2-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-vping_ssh-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-cinder_test-run' <<: *airship-jobs - name: 'airship-opnfv-functest-healthcheck-{tag}-tempest_smoke-run' <<: *airship-jobs - multijob: name: opnfv/functest-smoke:{functest_tag} projects: - name: 'airship-opnfv-functest-smoke-{tag}-tempest_keystone-run' <<: *airship-jobs - project: name: 'airship' <<: *airship-params jobs: - 'airship-{tag}-daily' - 'airship-{tag}-gate' - view: name: airship view-type: list columns: - status - weather - job - last-success - last-failure - last-duration regex: ^airship-[a-z]+-(daily|check|gate)$