Goncharov, Artem 09ed761a98 Add docs placeholders
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Goncharov, Artem <artem.goncharov@t-systems.com>
Co-committed-by: Goncharov, Artem <artem.goncharov@t-systems.com>
2022-08-12 16:24:57 +00:00

44 lines
1.2 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- name: Create temporary archive file
tempfile:
state: file
suffix: ".tar.gz"
register: doc_archive
- name: Archive Doc
command: "tar -f {{ doc_archive.path }} -C {{ fetch_doc_artifacts_rst_source }} -cz ."
args:
warn: false
- block:
- name: Fetch archive
synchronize:
dest: "{{ zuul.executor.log_root }}/{{ fetch_doc_artifacts_name }}.tar.gz"
mode: pull
src: "{{ doc_archive.path }}"
verify_host: true
owner: no
group: no
when: not zuul_use_fetch_output
- block:
- name: Copy archive
copy:
dest: "{{ zuul_output_dir }}/logs/{{ fetch_doc_artifacts_name }}.tar.gz"
src: "{{ doc_archive.path }}"
mode: 0644
remote_src: true
when: zuul_use_fetch_output
- name: Return artifact to Zuul
zuul_return:
data:
zuul:
artifacts:
- name: "{{ fetch_doc_artifacts_name }} archive"
url: "{{ fetch_doc_artifacts_name }}.tar.gz"
metadata:
type: docs_archive
doc_service: "{{ fetch_doc_artifacts_service }}"
doc_type: "{{ fetch_doc_artifacts_doc_type }}"
doc_label: "{{ fetch_doc_artifacts_name }}"