Hello,
{{report_title}}
Tested Jenkins job: {{job_url}}
Reported Time in UTC: {{now}}
{% set failed_owners = case_summary| rejectattr("fail", "equalto", 0) | list|map(attribute='owner')|unique|list %}
{% if failed_owners|length > 0 %}
Please following case owners help check the failed cases
{% endif %}
{% for x in failed_owners %}
@{{ x }}
{% endfor %}
{% set test_missing_builds = build_summary | selectattr("fail", "equalto", 0) | list | selectattr("pass", "equalto", 0) | list %}
{% if test_missing_builds|length > 0 %}
Please CI team check the test results missing builds
{% endif %}
{% for j in test_missing_builds %}
{% set href_link = job_url + "/" + j["number"]|string + "/testReport/" %}
{{j}}
{% endfor %}
Jenkins Build Summary
{% if pure_html == true %}
{% else %}

{% endif %}
- Test period: last {{past_hours}} hours
- Total builds: {{build_summary|length}}, Range:
#{{build_summary[0]["number"]}}--#{{build_summary[-1]["number"]}}
- No-test-results builds:
{{test_missing_builds|length}}
{% set pass_num = build_summary | selectattr("fail", "equalto", 0) | list | length %}
- Pass builds: {{pass_num}}, Pass Rate: {{((pass_num/(build_summary|length))*100)|round}}%
Test Case Summary:
*ranked by failure rate from high to low
Rank |
Suite Name |
Case Name |
Result(pass/total) |
Owner |
Failed Builds |
{% for i in case_summary %}
{% if i["pass"] == i["total"] %}
{% set color = "GREEN" %}
{% else %}
{% set color = "red" %}
{% endif %}
{{i["rank"]}} |
{{i["suite"]}} |
{{i["case"]}} |
{{i["pass"]}}/{{i["total"]}} |
{{i["owner"]}} |
{% for j in i["npass_numbers"] %}
{% set href_link = job_url + "/" + j|string + "/testReport/" %}
{{j}}
{% endfor %}
|
{% endfor %}
BR