Merge "Add a role to write a root marker"

This commit is contained in:
Zuul 2017-09-27 23:44:15 +00:00 committed by Gerrit Code Review
commit d7ccd57ee5
3 changed files with 14 additions and 0 deletions

View 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.

View File

@ -0,0 +1 @@
root_marker_dir: "src/{{ zuul.project.canonical_name }}/doc/build/html"

View 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 }}"