Create fetch-puppet-module-output role

We'll be using this for puppet(-branch)-tarball jobs to publish to
artifacts site.

Change-Id: I4da68c8b1f89e2e04f4b94eebf29905c24aea474
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-10-27 14:15:36 -04:00
parent 7c4734f398
commit 735a8f7c9a
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1 @@
Collect output from a puppet module build

View File

@ -0,0 +1,25 @@
- name: Find tarballs in pkg folder
find:
file_type: file
paths: "src/{{ zuul.project.canonical_name }}/pkg"
patterns: "*.tar.gz"
register: result
- name: Display stat for tarballs
stat:
path: "{{ item.path }}"
with_items: "{{ result.files }}"
- name: Ensure artifacts directory exists
file:
path: "{{ zuul.executor.work_root }}/artifacts"
state: directory
delegate_to: localhost
- name: Collect artifacts
synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts/"
mode: pull
src: "{{ item.path }}"
verify_host: true
with_items: "{{ result.files }}"