59bacd1518
This change enables using fetch-sphinx-output role along with the fetch-output role. By default the role still synchronizes artifacts back to the executor. Change-Id: I81c8a2faf566be694dbf1c59cbbd157dc4df5146
34 lines
999 B
YAML
34 lines
999 B
YAML
- hosts: all
|
|
pre_tasks:
|
|
# Run ensure-output-dirs now as it is not performed speculatively
|
|
- import_role:
|
|
name: ensure-output-dirs
|
|
|
|
- name: Create fake sphinx output
|
|
shell: |
|
|
mkdir -p {{ zuul.project.src_dir }}/doc/build/html
|
|
echo "<body>Hello</body>" > {{ zuul.project.src_dir }}/doc/build/html/index.html
|
|
|
|
tasks:
|
|
- import_role:
|
|
name: fetch-sphinx-output
|
|
|
|
- import_role:
|
|
name: fetch-output
|
|
when: zuul_use_fetch_output
|
|
|
|
post_tasks:
|
|
- name: Check for artifact on the test instance
|
|
stat:
|
|
path: "{{ ansible_user_dir }}/zuul-output/logs/html/index.html"
|
|
register: _test_artifact
|
|
failed_when: not _test_artifact.stat.exists
|
|
when: zuul_use_fetch_output
|
|
|
|
- name: Check for artifact on the executor
|
|
stat:
|
|
path: "{{ zuul.executor.log_root }}/html/index.html"
|
|
delegate_to: localhost
|
|
register: _executor_artifact
|
|
failed_when: not _executor_artifact.stat.exists
|