From 116becf381d2654581e3ad61eb40538faebec095 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Thu, 3 Jan 2019 12:10:21 -0800 Subject: [PATCH] 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 --- .zuul.yaml | 1 + playbooks/manila-tox-genconfig/post.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 playbooks/manila-tox-genconfig/post.yaml diff --git a/.zuul.yaml b/.zuul.yaml index be3a7890fe..ffd58f4847 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -372,6 +372,7 @@ Run tests for manila project. Uses tox with the ``genconfig`` environment. + post-run: playbooks/manila-tox-genconfig/post.yaml vars: tox_envlist: genconfig diff --git a/playbooks/manila-tox-genconfig/post.yaml b/playbooks/manila-tox-genconfig/post.yaml new file mode 100644 index 0000000000..6a607b23ff --- /dev/null +++ b/playbooks/manila-tox-genconfig/post.yaml @@ -0,0 +1,10 @@ +- hosts: all + roles: + - role: fetch-tox-output + tasks: + - name: Copy generated config sample file + synchronize: + src: "{{ zuul.project.src_dir }}/etc/manila/manila.conf.sample" + dest: "{{ zuul.executor.log_root }}" + mode: pull + verify_host: true