openstack-zuul-jobs/playbooks/legacy/tempest-dsvm-networking-bag.../run.yaml

56 lines
2.3 KiB
YAML

- hosts: all
name: Autoconverted job legacy-tempest-dsvm-networking-bagpipe from old job gate-tempest-dsvm-networking-bagpipe
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/devstack-gate
dest: devstack-gate
EOF
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
https://opendev.org \
openstack/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 networking-bagpipe https://opendev.org/openstack/networking-bagpipe
EOF
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: "set -e\nset -x\nexport PYTHONUNBUFFERED=true\nexport DEVSTACK_GATE_TEMPEST=1\n\
export DEVSTACK_GATE_TEMPEST_FULL=1\nexport DEVSTACK_GATE_NEUTRON=1\nexport\
\ BRANCH_OVERRIDE=default\nif [ \"$BRANCH_OVERRIDE\" != \"default\" ] ;\
\ then\n export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE\nfi\n# Because\
\ we are testing a non standard project, add\n# our project repository.\
\ This makes zuul do the right\n# reference magic for testing changes.\n\
export PROJECTS=\"openstack/networking-bagpipe $PROJECTS\"\n# we need to\
\ add networking-bgpvpn as well, which we\n# depend on\nexport PROJECTS=\"\
openstack/networking-bgpvpn $PROJECTS\"\n\nfunction gate_hook {\n bash\
\ -xe $BASE/new/networking-bagpipe/devstack/gate_hook.sh \n}\nexport -f\
\ gate_hook\n\nexport DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bagpipe/devstack/devstack-gate-rc\n\
\ncp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh\n\
./safe-devstack-vm-gate-wrap.sh\n"
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'