forked from docs/doc-exports
add zuul jobs (#1)
Enable zuul jobs Reviewed-by: OpenTelekomCloud Bot <None> Reviewed-by: Vladimir Hasko <vladimirhasko@gmail.com>
This commit is contained in:
31
roles/fetch_doc_artifacts/tasks/patch.yaml
Normal file
31
roles/fetch_doc_artifacts/tasks/patch.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
- block:
|
||||
- name: Fetch archive
|
||||
synchronize:
|
||||
dest: "{{ zuul.executor.log_root }}/{{ fetch_doc_artifacts_name }}.patch"
|
||||
mode: pull
|
||||
src: "{{ fetch_doc_artifacts_patch }}"
|
||||
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 }}.patch"
|
||||
src: "{{ fetch_doc_artifacts_patch }}"
|
||||
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 }} patch"
|
||||
url: "patches/{{ fetch_doc_artifacts_name }}.patch"
|
||||
metadata:
|
||||
type: docs_patch
|
||||
doc_service: "{{ doc.service }}"
|
||||
doc_type: "{{ doc.type }}"
|
||||
Reference in New Issue
Block a user