Update Sharepoint.yaml
This commit is contained in:
@@ -81,6 +81,11 @@
|
|||||||
Failed={{ recap_failed | default(0) }},
|
Failed={{ recap_failed | default(0) }},
|
||||||
Skipped={{ recap_skipped | default(0) }},
|
Skipped={{ recap_skipped | default(0) }},
|
||||||
Unreachable={{ recap_unreach | default(0) }}
|
Unreachable={{ recap_unreach | default(0) }}
|
||||||
|
|
||||||
|
- name: Build final status from recap
|
||||||
|
run_once: true
|
||||||
|
set_fact:
|
||||||
|
status_final: "{{ 'failed' if (recap_failed | int > 0 or recap_unreach | int > 0) else 'successful' }}"
|
||||||
|
|
||||||
# --- Optional probes (keep while debugging) ---
|
# --- Optional probes (keep while debugging) ---
|
||||||
- name: Verify siteId resolves
|
- name: Verify siteId resolves
|
||||||
@@ -149,7 +154,7 @@
|
|||||||
body:
|
body:
|
||||||
fields:
|
fields:
|
||||||
Title: "{{ job_name }} ({{ job_id }})"
|
Title: "{{ job_name }} ({{ job_id }})"
|
||||||
Status: "{{ status }}"
|
Status: "{{ status_final }}"
|
||||||
RunStart: "{{ run_start }}"
|
RunStart: "{{ run_start }}"
|
||||||
RunEnd: "{{ run_end }}"
|
RunEnd: "{{ run_end }}"
|
||||||
Notes: |-
|
Notes: |-
|
||||||
|
|||||||
Reference in New Issue
Block a user