summaryrefslogtreecommitdiff
path: root/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml
diff options
context:
space:
mode:
authorSam Betts <sam@code-smash.net>2017-10-11 15:01:58 +0100
committerSam Betts <sam@code-smash.net>2017-10-18 16:52:46 +0100
commit4b37c29b5e180d68e744e8114e2f414023d1376a (patch)
tree3fe7ea35aade158b2f37acf290986976b0289d47 /playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml
parent5a5d485c1d5982bc7ad29911b400c21c229b1514 (diff)
downloadironic-4b37c29b5e180d68e744e8114e2f414023d1376a.tar.gz
Move ironic legacy jobs into the ironic tree
This patch moves the legacy ironic CI jobs into the ironic tree instead of storing them in openstack-infra/openstack-zuul-jobs to give us control as we migrate the legacy jobs to the new ansible roles. Change-Id: Ib728fadbdab2eb9f1ba5112297a32dbdbfd1d5fd
Diffstat (limited to 'playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml')
-rw-r--r--playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml55
1 files changed, 55 insertions, 0 deletions
diff --git a/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml b/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml
new file mode 100644
index 000000000..14c04cc2c
--- /dev/null
+++ b/playbooks/legacy/tempest-dsvm-ironic-parallel/run.yaml
@@ -0,0 +1,55 @@
+- hosts: all
+ name: Autoconverted job legacy-tempest-dsvm-ironic-parallel from old job gate-tempest-dsvm-ironic-parallel-ubuntu-xenial-nv
+ 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
+ export PROJECTS="openstack/ironic $PROJECTS"
+ export PROJECTS="openstack/ironic-lib $PROJECTS"
+ export PROJECTS="openstack/ironic-python-agent $PROJECTS"
+ export PROJECTS="openstack/python-ironicclient $PROJECTS"
+ export PYTHONUNBUFFERED=true
+ export DEVSTACK_GATE_TEMPEST=1
+ # NOTE(deva): tempest-lib support was added in Mitaka
+ # but this job does not run on stable branches, so we can keep it simple here
+ export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
+ export DEVSTACK_GATE_IRONIC=1
+ export DEVSTACK_GATE_NEUTRON=1
+ export DEVSTACK_GATE_VIRT_DRIVER=ironic
+ export DEVSTACK_GATE_CONFIGDRIVE=1
+ export TEMPEST_CONCURRENCY=2
+ export BRANCH_OVERRIDE=default
+ if [ "$BRANCH_OVERRIDE" != "default" ] ; then
+ export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
+ fi
+ # Run only baremetal tests
+ export DEVSTACK_GATE_TEMPEST_REGEX='ironic'
+
+ 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 }}'