zuul-jobs/roles/fetch-puppet-module-output/tasks/main.yaml
Sorin Sbarnea 6b8cc6d468 More E208 (final)
Change-Id: I705d1b10696326f3d4d5bef4b5a88a83f2c3d960
2020-11-10 19:34:45 +00:00

33 lines
751 B
YAML

- 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: "{{ zj_tarball.path }}"
with_items: "{{ result.files }}"
loop_control:
loop_var: zj_tarball
- name: Ensure artifacts directory exists
file:
path: "{{ zuul.executor.work_root }}/artifacts"
state: directory
mode: 0755
delegate_to: localhost
- name: Collect artifacts
synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts/"
mode: pull
src: "{{ zj_artifact.path }}"
verify_host: true
owner: no
group: no
with_items: "{{ result.files }}"
loop_control:
loop_var: zj_artifact