Browse Source

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
Goutham Pacha Ravi 3 months ago
parent
commit
116becf381
2 changed files with 11 additions and 0 deletions
  1. 1
    0
      .zuul.yaml
  2. 10
    0
      playbooks/manila-tox-genconfig/post.yaml

+ 1
- 0
.zuul.yaml View File

@@ -372,6 +372,7 @@
372 372
       Run tests for manila project.
373 373
 
374 374
       Uses tox with the ``genconfig`` environment.
375
+    post-run: playbooks/manila-tox-genconfig/post.yaml
375 376
     vars:
376 377
       tox_envlist: genconfig
377 378
 

+ 10
- 0
playbooks/manila-tox-genconfig/post.yaml View File

@@ -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

Loading…
Cancel
Save