Update Sharepoint.yaml

This commit is contained in:
2025-08-14 08:02:53 +00:00
parent 3cf64d848e
commit 5a511375dc

View File

@@ -82,6 +82,11 @@
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
delegate_to: localhost delegate_to: localhost
@@ -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: |-