Support sync with deletion

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>
This commit is contained in:
Goncharov, Artem
2022-07-28 12:40:22 +00:00
committed by zuul
parent 4c07c197d8
commit 1bec551697
14 changed files with 196 additions and 34 deletions

View File

@ -1,2 +1,3 @@
zuul_work_dir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
zuul_work_virtualenv: "{{ ansible_user_dir }}/.venv"
convert_params: ""

View File

@ -8,8 +8,28 @@
- name: Add title to parameters
ansible.builtin.set_fact:
convert_params: "{{ convert_params }} --title '{{ title }}'"
when: "title is defined"
convert_params: "{{ convert_params }} --title '{{ doc_title }}'"
when: "doc_title is defined"
- name: Add service to parameters
ansible.builtin.set_fact:
convert_params: "{{ convert_params }} --service '{{ doc_service }}'"
when: "doc_service is defined"
- name: Add repo_name to parameters
ansible.builtin.set_fact:
convert_params: "{{ convert_params }} --repo-name '{{ doc_repo_name }}'"
when: "doc_repo_name is defined"
- name: Add pdf_name to parameters
ansible.builtin.set_fact:
convert_params: "{{ convert_params }} --pdf-name {{ doc_pdf_name }}"
when: "doc_pdf_name is defined"
- name: Add templates-location to parameters
ansible.builtin.set_fact:
convert_params: "{{ convert_params }} --templates-location {{ zuul_work_dir }}/templates"
- name: Convert {{ doc_label | default('') }} HTML to RST
args:

View File

@ -38,6 +38,6 @@
url: "{{ fetch_doc_artifacts_name }}.tar.gz"
metadata:
type: docs_archive
doc_service: "{{ doc.service }}"
doc_type: "{{ doc.type }}"
doc_service: "{{ doc.service_type }}"
doc_type: "{{ doc.doc_type }}"
doc_label: "{{ fetch_doc_artifacts_name }}"

View File

@ -27,6 +27,6 @@
url: "{{ fetch_doc_artifacts_name }}.{{ patch_type }}.patch"
metadata:
type: "patch"
doc_service: "{{ doc.service }}"
doc_type: "{{ doc.type }}"
doc_service: "{{ doc.service_type }}"
doc_type: "{{ doc.doc_type }}"
patch_type: "{{ patch_type }}"