9062289151
Change-Id: I191265df7709a6262b44a428d78fe28ffaeb4b75
30 lines
750 B
YAML
30 lines
750 B
YAML
- name: Find tarballs and wheels in dist folder
|
|
find:
|
|
file_type: file
|
|
paths: "src/{{ zuul.project.canonical_name }}/dist"
|
|
patterns: "*.tar.gz,*.whl"
|
|
register: result
|
|
|
|
- name: Display stat for tarballs and wheels
|
|
stat:
|
|
path: "{{ zj_tarball_wheel.path }}"
|
|
with_items: "{{ result.files }}"
|
|
loop_control:
|
|
loop_var: zj_tarball_wheel
|
|
|
|
- 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
|
|
with_items: "{{ result.files }}"
|
|
loop_control:
|
|
loop_var: zj_artifact
|