--- - 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: hunter - parameter: name: airship-slave parameters: - label: name: slave default: '{slave}' - 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 \ -e S3_ENDPOINT_URL=https://storage.googleapis.com \ -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$JOB_NAME-$BUILD_ID \ -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$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 \ -v $WORKSPACE/../$JOB_NAME/results:/var/lib/xtesting/results \ -v /home/opnfv/functest/.boto:/root/.boto \ -e DEBUG=True \ -e EXTERNAL_NETWORK=public \ -e DEPLOY_SCENARIO=os-nosdn-nofeature-ha \ -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/python2.7/\ site-packages/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml \ $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}' 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 jobs: - 'airship-{repo}-{container}-{tag}-{test}-run' - project: name: 'airship-opnfv-functest-smoke' <<: *airship-params container: 'functest-smoke' test: - neutron-tempest-plugin-api - rally_sanity - refstack_defcore - tempest_full - tempest_scenario - patrole - neutron_trunk - networking-bgpvpn - networking-sfc - barbican 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' - job-template: name: 'airship-{tag}-daily' project-type: multijob triggers: - timed: '@daily' parameters: - airship-slave: slave: '{slave}' - airship-branch: branch: 'master' 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 - multijob: name: opnfv/functest-smoke:{functest_tag} condition: ALWAYS projects: - name: 'airship-opnfv-functest-smoke-{tag}-neutron-tempest-plugin-api-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-rally_sanity-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-refstack_defcore-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}-patrole-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-neutron_trunk-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}-barbican-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 - 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}' 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 - 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} 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 - multijob: name: opnfv/functest-smoke:{functest_tag} projects: - name: 'airship-opnfv-functest-smoke-{tag}-tempest_scenario-run' <<: *airship-jobs - name: 'airship-opnfv-functest-smoke-{tag}-neutron_trunk-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}-barbican-run' <<: *airship-jobs - multijob: name: opnfv/functest-benchmarking:{functest_tag} projects: - 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 - 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)$