Merge "Add post step to Tempest base job"
diff --git a/.zuul.yaml b/.zuul.yaml
index 5b73695..e646d9b 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -11,6 +11,7 @@
devstack_services:
tempest: True
run: playbooks/devstack-tempest.yaml
+ post-run: playbooks/post-tempest.yaml
- project:
name: openstack/tempest
diff --git a/playbooks/post-tempest.yaml b/playbooks/post-tempest.yaml
new file mode 100644
index 0000000..c0b9dd4
--- /dev/null
+++ b/playbooks/post-tempest.yaml
@@ -0,0 +1,16 @@
+- hosts: all
+ become: true
+ vars:
+ logs_root: "{{ devstack_base_dir|default('/opt/stack') }}"
+ stage_dir: "{{ devstack_base_dir|default('/opt/stack') }}"
+ roles:
+ - role: stage-output
+ zuul_copy_output:
+ { '{{ logs_root }}/tempest/etc/tempest.conf': 'logs',
+ '{{ logs_root }}/tempest/etc/accounts.yaml': 'logs',
+ '{{ logs_root }}/tempest/tempest.log': 'logs' }
+ extensions_to_txt:
+ - conf
+ - log
+ - yaml
+ - yml