zuul-jobs/roles/fetch-puppet-module-output/tasks/main.yaml
Albin Vass ca4c045edc fetch-puppet-module-output: do not synchronize owner
Change-Id: I2eda5eebc88f1471ae6b03d5d6ce3ac35f5f932b
2020-05-18 17:04:10 +02:00

32 lines
736 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
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