Merge "Add content to support translation jobs"

This commit is contained in:
Zuul 2017-10-03 06:59:22 +00:00 committed by Gerrit Code Review
commit 92ee80aa14
5 changed files with 17 additions and 1 deletions

View File

@ -20,6 +20,12 @@ in subsequent tasks or roles.
the project short name will be added to the hostvars of the host
as ``zuul_fileserver_project_path``.
.. zuul:rolevar:: fileserver_leading_path
This is an optional variable that will be inserted between the base
of the path (provided by the `path` variable) and the
``zuul.project.short_name`` final path element.
.. zuul:rolevar:: ssh_known_hosts
String containing known host signature for the remote host.

View File

@ -19,7 +19,7 @@
add_host:
name: "{{ fileserver.fqdn }}"
ansible_user: "{{ fileserver.ssh_username|default(ansible_user) }}"
zuul_fileserver_project_path: "{{ fileserver.path }}/{{ zuul.project.short_name }}"
zuul_fileserver_project_path: "{{ fileserver.path }}{{ '/' + fileserver_leading_path if fileserver_leading_path is defined else ''}}/{{ zuul.project.short_name }}"
- name: Add fileserver server to known hosts
known_hosts:

View File

@ -0,0 +1 @@
Collect output from a translation build

View File

@ -0,0 +1,3 @@
---
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
translation_output_src: "src/{{ zuul.project.canonical_name }}/*.pot"

View File

@ -0,0 +1,6 @@
- name: Collect translation source files
synchronize:
dest: "{{ zuul_executor_dest }}"
mode: pull
src: "{{ translation_output_src }}"
verify_host: true