2017-09-06 13:39:08 -05:00
|
|
|
- name: Set build dir fact
|
|
|
|
set_fact:
|
2017-12-21 16:29:58 +01:00
|
|
|
doc_build_dir: "{{ zuul_work_dir }}/{{ sphinx_build_dir }}"
|
2017-09-06 13:39:08 -05:00
|
|
|
|
2018-02-07 16:37:59 -08:00
|
|
|
- name: Write branch marker text
|
2017-09-01 20:38:25 -04:00
|
|
|
copy:
|
2017-09-06 13:39:08 -05:00
|
|
|
dest: "{{ doc_build_dir }}/html/.root-marker"
|
2017-09-01 20:38:25 -04:00
|
|
|
content: "Project: {{ zuul.project.name }} Branch: {{ zuul.branch }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"
|
2018-02-07 16:37:59 -08:00
|
|
|
when: "zuul.branch is defined"
|
|
|
|
|
|
|
|
- name: Write tag marker text
|
|
|
|
copy:
|
|
|
|
dest: "{{ doc_build_dir }}/html/.root-marker"
|
|
|
|
content: "Project: {{ zuul.project.name }} Tag: {{ zuul.tag }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"
|
|
|
|
when: "zuul.tag is defined"
|
2017-09-01 20:38:25 -04:00
|
|
|
|
|
|
|
- name: Process tagged build
|
2020-05-26 14:45:29 +02:00
|
|
|
include_tasks: tagged.yaml
|
2018-02-07 16:37:59 -08:00
|
|
|
when: "zuul.tag is defined"
|
2017-09-01 20:38:25 -04:00
|
|
|
|
|
|
|
- name: Process stable branch build
|
2020-05-26 14:45:29 +02:00
|
|
|
include_tasks: stable.yaml
|
2018-02-07 16:37:59 -08:00
|
|
|
when: "zuul.branch is defined and 'stable' in zuul.branch and zuul.tag is not defined"
|
2017-09-01 20:38:25 -04:00
|
|
|
|
|
|
|
- name: Process branch build
|
2020-05-26 14:45:29 +02:00
|
|
|
include_tasks: branch.yaml
|
2018-02-07 16:37:59 -08:00
|
|
|
when: "zuul.branch is defined and zuul.branch != 'master' and 'stable' not in zuul.branch and zuul.tag is not defined"
|