Merge "Add a role to write a root marker"
This commit is contained in:
commit
d7ccd57ee5
9
roles/write-root-marker/README.rst
Normal file
9
roles/write-root-marker/README.rst
Normal file
@ -0,0 +1,9 @@
|
||||
Write the root marker for an AFS publishing job
|
||||
|
||||
** Role Variables **
|
||||
|
||||
.. zuul:rolevar:: root_marker_dir
|
||||
:default: src/{{ zuul.project.canonical_name }}/doc/build/html
|
||||
|
||||
The documentation build directory. The marker file will be placed
|
||||
in this directory.
|
1
roles/write-root-marker/defaults/main.yaml
Normal file
1
roles/write-root-marker/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
||||
root_marker_dir: "src/{{ zuul.project.canonical_name }}/doc/build/html"
|
4
roles/write-root-marker/tasks/main.yaml
Normal file
4
roles/write-root-marker/tasks/main.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
- name: Write marker text
|
||||
copy:
|
||||
dest: "{{ root_marker_dir }}/.root-marker"
|
||||
content: "Project: {{ zuul.project.name }} Branch: {{ zuul.branch }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"
|
Loading…
x
Reference in New Issue
Block a user