blob: d9e2e455b0160d30ec08b18fb957485dc9f9f561 [file] [log] [blame]
- name: Run hlint
command: "hlint --report={{ report_location }} ."
register: _hlint
failed_when: false
vars:
report_location: "{{ ansible_user_dir }}/zuul-output/logs/{{ hlint_report_name }}"
args:
chdir: "{{ zuul_work_dir }}"
- name: Return report to Zuul
zuul_return:
data:
zuul:
artifacts:
- name: "HLint report"
url: "{{ hlint_report_name }}"
- name: Fail on error
fail:
msg: "HLint failed"
when: _hlint.rc != 0