Ignore errors when parsing tox output

Retrieving file comments is not an essential part of the job and
should not fail the job if something goes wrong.

Change-Id: Ide13343c6eda3a1fd0f45cb33cba35f3b048ece6
This commit is contained in:
Tobias Henkel 2020-04-01 13:58:22 +02:00
parent 7e2b931332
commit a3c7c22c06
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2

View File

@ -45,14 +45,18 @@
tox_parse_output:
tox_output: '{{ tox_output.stdout }}'
register: file_comments
ignore_errors: yes
- name: Return file comments to Zuul
when: file_comments.file_comments
when:
- file_comments
- file_comments.file_comments
delegate_to: localhost
zuul_return:
data:
zuul:
file_comments: '{{ file_comments.file_comments }}'
ignore_errors: yes
- name: Return tox status
fail: