zuul-jobs/roles/fetch-translation-output/tasks/main.yaml
Andreas Jaeger 85f7b0a793 translations: Check for translation-source first
Translation jobs might not produce the translation-source directory but
still succeed, e.g. if the branch is not translated.

Check for the translation-source directory and only fetch files if there
is really something to fetch.

Change-Id: I064873412bf8503c5e7d317739adb891315038f8
2017-12-16 15:45:36 +00:00

13 lines
324 B
YAML

- name: Check for translation files
stat:
path: "{{ translation_output_src }}"
register: translation_files
- name: Collect translation source files
synchronize:
dest: "{{ zuul_executor_dest }}"
mode: pull
src: "{{ translation_output_src }}"
verify_host: true
when: translation_files.stat.exists