Monty Taylor 2d2a717f29
Ansiblify prepare-infra-docs-for-afs
The existing code in branch made a directory for build/{{ branch.tag |
dirname }} but then moved things to build/{{ branch.tag | basename }}
which produced:

  html/
  html/feature
  html/zuulv3

Fix that. While we're in there, go ahead and change this into individual
ansible tasks.

Change-Id: Ib757d1f8bf76012d2d436565913e750c4a5d52a7
2017-09-06 14:00:44 -05:00

21 lines
678 B
YAML

- name: Set build dir fact
set_fact:
doc_build_dir: "{{ zuul_work_dir }}/doc/build"
- name: Write marker text
copy:
dest: "{{ doc_build_dir }}/html/.root-marker"
content: "Project: {{ zuul.project.name }} Branch: {{ zuul.branch }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"
- name: Process tagged build
include: tagged.yaml
when: "zuul.branch != 'master' and zuul.tag is defined"
- name: Process stable branch build
include: stable.yaml
when: "'stable' in zuul.branch and zuul.tag is not defined"
- name: Process branch build
include: branch.yaml
when: "zuul.branch != 'master' and 'stable' not in zuul.branch and zuul.tag is not defined"