rajat29 | 0fc826d | 2017-11-21 00:06:00 +0530 | [diff] [blame] | 1 | - hosts: all |
| 2 | name: Autoconverted job legacy-tempest-dsvm-patrole-admin from old job gate-tempest-dsvm-patrole-admin-ubuntu-xenial |
| 3 | tasks: |
| 4 | |
| 5 | - name: Ensure legacy workspace directory |
| 6 | file: |
| 7 | path: '{{ ansible_user_dir }}/workspace' |
| 8 | state: directory |
| 9 | |
| 10 | - shell: |
| 11 | cmd: | |
| 12 | set -e |
| 13 | set -x |
| 14 | cat > clonemap.yaml << EOF |
| 15 | clonemap: |
| 16 | - name: openstack-infra/devstack-gate |
| 17 | dest: devstack-gate |
| 18 | EOF |
| 19 | /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ |
| 20 | git://git.openstack.org \ |
| 21 | openstack-infra/devstack-gate |
| 22 | executable: /bin/bash |
| 23 | chdir: '{{ ansible_user_dir }}/workspace' |
| 24 | environment: '{{ zuul | zuul_legacy_vars }}' |
| 25 | |
| 26 | - shell: |
| 27 | cmd: | |
| 28 | set -e |
| 29 | set -x |
| 30 | cat << 'EOF' >>"/tmp/dg-local.conf" |
| 31 | [[local|localrc]] |
| 32 | enable_plugin patrole git://git.openstack.org/openstack/patrole |
| 33 | TEMPEST_PLUGINS='/opt/stack/new/patrole' |
| 34 | # Needed by Patrole devstack plugin |
| 35 | RBAC_TEST_ROLE=admin |
| 36 | EOF |
| 37 | executable: /bin/bash |
| 38 | chdir: '{{ ansible_user_dir }}/workspace' |
| 39 | environment: '{{ zuul | zuul_legacy_vars }}' |
| 40 | |
| 41 | - shell: |
| 42 | cmd: | |
| 43 | set -e |
| 44 | set -x |
| 45 | export PYTHONUNBUFFERED=true |
| 46 | export DEVSTACK_GATE_TEMPEST=1 |
| 47 | export DEVSTACK_GATE_NEUTRON=1 |
| 48 | export DEVSTACK_GATE_TEMPEST_REGEX='(?!.*\[.*\bslow\b.*\])(^patrole_tempest_plugin\.tests\.api)' |
| 49 | export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1 |
| 50 | export TEMPEST_CONCURRENCY=2 |
| 51 | export PROJECTS="openstack/patrole $PROJECTS" |
| 52 | export BRANCH_OVERRIDE=default |
| 53 | if [ "$BRANCH_OVERRIDE" != "default" ] ; then |
| 54 | export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE |
| 55 | fi |
| 56 | cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh |
| 57 | ./safe-devstack-vm-gate-wrap.sh |
| 58 | executable: /bin/bash |
| 59 | chdir: '{{ ansible_user_dir }}/workspace' |
| 60 | environment: '{{ zuul | zuul_legacy_vars }}' |