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

27 lines
602 B
YAML

- name: Collect sphinx build html
synchronize:
dest: "{{ zuul_executor_dest }}"
mode: pull
src: "{{ sphinx_output_src }}"
verify_host: true
owner: no
group: no
when: not zuul_use_fetch_output
- name: Copy sphinx build html # noqa 208
copy:
dest: "{{ zuul_output_dir }}/logs/"
src: "{{ sphinx_output_src }}"
remote_src: true
when: zuul_use_fetch_output
- name: Return artifact to Zuul
zuul_return:
data:
zuul:
artifacts:
- name: "Docs preview site"
url: "html/"
metadata:
type: docs_site