Add build set URL to reporter

formatStatusUrl() return build set URL when the
item.current_build_set.result exist (zuul/model.py)

Also updated the quick-start to continue to look for the
build URL instead of the buildset URL.

Change-Id: I5f8433e2926da5a8d14b966d89cc943be1ecfca9
This commit is contained in:
Kenny Ho
2022-04-08 18:26:30 +00:00
parent 895bb36467
commit 8176fd2ffb
4 changed files with 17 additions and 1 deletions

View File

@@ -84,7 +84,7 @@
- name: Find the build URL with regex
set_fact:
build_url: "{{ result_json | to_json | from_json | json_query(json_query_log_url) | regex_search('(http://[^ ]*)') }}"
build_url: "{{ result_json | to_json | from_json | json_query(json_query_log_url) | regex_search('-.*(http://[^ ]*)') | regex_search('(http://[^ ]*)') }}"
vars:
json_query_log_url: "messages[?contains(@.message, 'http://')].message | [1]"