summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoutham Pacha Ravi <gouthampravi@gmail.com>2019-01-03 12:10:21 -0800
committerGoutham Pacha Ravi <gouthampravi@gmail.com>2019-01-04 04:01:51 +0000
commit116becf381d2654581e3ad61eb40538faebec095 (patch)
tree6beeb427e762fce04ad98a8c74bb05f758612bf3
parent0c177b902a5799dfe2f026b67094d12081f31045 (diff)
Publish sample config file in the genconfig job
Add a post run to enable copying the sample file generated to zuul logs. Change-Id: Ifc1e71ce486ef9cefc07dbe9fb7c78ce150317bd
Notes
Notes (review): Code-Review+2: Tom Barron <tpb@dyncloud.net> Code-Review+2: Thomas Bechtold <tbechtold@suse.com> Workflow+1: Thomas Bechtold <tbechtold@suse.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 08 Jan 2019 11:37:41 +0000 Reviewed-on: https://review.openstack.org/628287 Project: openstack/manila Branch: refs/heads/master
-rw-r--r--.zuul.yaml1
-rw-r--r--playbooks/manila-tox-genconfig/post.yaml10
2 files changed, 11 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index be3a789..ffd58f4 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -372,6 +372,7 @@
372 Run tests for manila project. 372 Run tests for manila project.
373 373
374 Uses tox with the ``genconfig`` environment. 374 Uses tox with the ``genconfig`` environment.
375 post-run: playbooks/manila-tox-genconfig/post.yaml
375 vars: 376 vars:
376 tox_envlist: genconfig 377 tox_envlist: genconfig
377 378
diff --git a/playbooks/manila-tox-genconfig/post.yaml b/playbooks/manila-tox-genconfig/post.yaml
new file mode 100644
index 0000000..6a607b2
--- /dev/null
+++ b/playbooks/manila-tox-genconfig/post.yaml
@@ -0,0 +1,10 @@
1- hosts: all
2 roles:
3 - role: fetch-tox-output
4 tasks:
5 - name: Copy generated config sample file
6 synchronize:
7 src: "{{ zuul.project.src_dir }}/etc/manila/manila.conf.sample"
8 dest: "{{ zuul.executor.log_root }}"
9 mode: pull
10 verify_host: true