zuul-jobs/roles/fetch-subunit-output/tasks/find-subunit-html.yaml
Sorin Sbarnea 4af438d136 Made sequence indent consistent
Change-Id: I5ea4232ca4fd6e03d5b5f72eb6704bee84d04ea5
2020-05-07 14:13:55 +01:00

17 lines
550 B
YAML

- name: Look for subunit2html command
script: "find-subunit2html.sh {{ zuul_work_dir }}"
failed_when: false
register: find_subunit2html_output
- name: Define subunit_html_command fact
when:
- find_subunit2html_output.rc == 0
- find_subunit2html_output.stdout_lines
set_fact:
subunit_html_command: "{{ find_subunit2html_output.stdout_lines[0] }}"
- name: Emit a debug line so we can search logstash for fallback hits
debug:
msg: "subunit2html found in: {{ subunit_html_command }}"
when: subunit_html_command is defined