zuul-jobs/roles/fetch-sphinx-tarball/tasks/main.yaml
James E. Blair 189c2471ec Add fetch-sphinx-tarball role
This is a new artifact-aware method of fetching sphinx tarballs,
meant to be used in docs promote jobs.

Change-Id: I9a01af9e36b959c4fa42f3c41b548c87bf2e1759
2019-03-21 14:04:11 -07:00

16 lines
448 B
YAML

- name: Inspect sphinx build directory
find:
file_type: any
paths: "{{ zuul_work_dir }}/{{ sphinx_build_dir }}"
register: sphinx_dir
- name: Parse sphinx build directory
set_fact:
sphinx_dir: "{{sphinx_dir.files | map(attribute='path') | map('regex_replace', '^.*/(.*)$', '\\1') | list}}"
- name: Process sphinx HTML
when: "'html' in sphinx_dir"
include_tasks: html.yaml
# Other sphinx output processing can be added here.