3c57322fd2
This patch implements first step in zuulv3 migration guide [1]: Move jobs to neutron-vpnaas repo [1] https://docs.openstack.org/infra/manual/zuulv3.html#legacy-job-migration-details Needed-By: I6feeb874eedbb7e7278923c4f6f4e526f1def24c Needed-By: I9ee5756c15ab6c8a393dd77680d6277fb35a7ee2 Co-Authored-By: Cao Xuan Hoang <hoangcx@vn.fujitsu.com> Change-Id: If66846aa7bfc2afd42b9ffd077cdb179563f5995
64 lines
2.0 KiB
YAML
64 lines
2.0 KiB
YAML
- hosts: all
|
|
name: Autoconverted job legacy-neutron-vpnaas-dsvm-rally from old job gate-neutron-vpnaas-dsvm-rally-ubuntu-xenial
|
|
tasks:
|
|
|
|
- name: Ensure legacy workspace directory
|
|
file:
|
|
path: '{{ ansible_user_dir }}/workspace'
|
|
state: directory
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat > clonemap.yaml << EOF
|
|
clonemap:
|
|
- name: openstack-infra/devstack-gate
|
|
dest: devstack-gate
|
|
EOF
|
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
|
git://git.openstack.org \
|
|
openstack-infra/devstack-gate
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
|
[[local|localrc]]
|
|
enable_plugin neutron-vpnaas git://git.openstack.org/openstack/neutron-vpnaas
|
|
enable_plugin rally git://git.openstack.org/openstack/rally
|
|
|
|
EOF
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
|
|
|
- shell:
|
|
cmd: |
|
|
set -e
|
|
set -x
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
export RALLY_SCENARIO=neutron-vpnaas
|
|
export BRANCH_OVERRIDE=default
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
export PROJECTS="openstack/neutron-vpnaas $PROJECTS"
|
|
export PROJECTS="openstack/rally $PROJECTS"
|
|
|
|
function post_test_hook {
|
|
$BASE/new/rally/tests/ci/rally-gate.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
|
|
executable: /bin/bash
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|