blob: 5283d65657019d21419a4f2abc413439bdc489d8 [file] [log] [blame]
- fail:
msg: "This role only works in the 'promote' pipeline."
when: zuul.pipeline != 'promote'
- name: Ensure artifacts directory exists
delegate_to: localhost
file:
path: "{{ zuul.executor.work_root }}/artifacts"
state: directory
- name: Collect artifacts
synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts/"
mode: pull
src: "{{ zuul_output_dir }}/artifacts/"
verify_host: true
- name: "Purge artifacts on the build node so that they are not uploaded the promote job's log directory"
file:
path: "{{ zuul_output_dir }}/artifacts/"
state: absent
- name: "Re-create an empty artifacts directory on the build node so that `fetch-output` doesn't complain"
file:
path: "{{ zuul_output_dir }}/artifacts/"
state: directory