diff --git a/jenkins/jobs/nova.yaml b/jenkins/jobs/nova.yaml index e60c8d54a1..baa3a20e0a 100644 --- a/jenkins/jobs/nova.yaml +++ b/jenkins/jobs/nova.yaml @@ -47,6 +47,49 @@ - console-log +- job-template: + name: '{pipeline}-osc-placement-dsvm-functional{special}-{node}{suffix}' + node: '{node}' + + wrappers: + - build-timeout: + timeout: 120 + - timestamps + + builders: + - link-logs + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export BRANCH_OVERRIDE={branch-override} + export PROJECTS="openstack/osc-placement $PROJECTS" + export DEVSTACK_PROJECT_FROM_GIT=osc-placement + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # This ensures that if we set override branch to something + # else, we still take osc-placement from the zuul branch + # name. So override branch can be 'stable/mitaka' but we can + # test master changes. + export OVERRIDE_OSC_PLACEMENT_PROJECT_BRANCH=$ZUUL_BRANCH + + function post_test_hook {{ + # Configure and run functional tests + $BASE/new/osc-placement/osc_placement/tests/functional/hooks/post_test_hook.sh + }} + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + + publishers: + - test-results + - devstack-logs + - console-log + + # This runs single-node full tempest with neutron plus cells v2 and # the placement-api service. The intent of this job is to test the latest # features in Nova which might be considered experimental in master. diff --git a/jenkins/jobs/projects.yaml b/jenkins/jobs/projects.yaml index 33911970ea..3256e2579b 100644 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -9609,6 +9609,12 @@ - python-jobs - openstack-publish-jobs - pypi-jobs + - '{pipeline}-osc-placement-dsvm-functional{special}-{node}{suffix}': + pipeline: gate + node: ubuntu-xenial + special: '' + suffix: '' + branch-override: default - project: name: oslo-cookiecutter diff --git a/zuul/layout.yaml b/zuul/layout.yaml index abf0e07fb7..7a69e3e2f8 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -14543,6 +14543,8 @@ projects: - name: check-requirements - name: openstack-server-publish-jobs - name: publish-to-pypi + experimental: + - gate-osc-placement-dsvm-functional-ubuntu-xenial - name: openstack/oslo-specs template: