diff --git a/ci-operator/config/stolostron/capi-tests/stolostron-capi-tests-configure-prow-mgmt__periodics.yaml b/ci-operator/config/stolostron/capi-tests/stolostron-capi-tests-configure-prow-mgmt__periodics.yaml index c68defb29f279..bb0296e8ca52d 100644 --- a/ci-operator/config/stolostron/capi-tests/stolostron-capi-tests-configure-prow-mgmt__periodics.yaml +++ b/ci-operator/config/stolostron/capi-tests/stolostron-capi-tests-configure-prow-mgmt__periodics.yaml @@ -22,9 +22,11 @@ tests: reporter_config: channel: '#hcm-aro-team-capz' job_states_to_report: + - success - failure - error - report_template: ':failed: Job *{{.Spec.Job}}* ended with *{{.Status.State}}*. + report_template: '{{if eq .Status.State "success"}}:slack-green: Job *{{.Spec.Job}}* + succeeded.{{else}}:failed: Job *{{.Spec.Job}}* ended with *{{.Status.State}}*.{{end}} <{{.Status.URL}}|View logs>' steps: cluster_profile: openshift-org-azure diff --git a/ci-operator/jobs/stolostron/capi-tests/stolostron-capi-tests-configure-prow-mgmt-periodics.yaml b/ci-operator/jobs/stolostron/capi-tests/stolostron-capi-tests-configure-prow-mgmt-periodics.yaml index 118e69363325c..b291528f65963 100644 --- a/ci-operator/jobs/stolostron/capi-tests/stolostron-capi-tests-configure-prow-mgmt-periodics.yaml +++ b/ci-operator/jobs/stolostron/capi-tests/stolostron-capi-tests-configure-prow-mgmt-periodics.yaml @@ -21,9 +21,11 @@ periodics: slack: channel: '#hcm-aro-team-capz' job_states_to_report: + - success - failure - error - report_template: ':failed: Job *{{.Spec.Job}}* ended with *{{.Status.State}}*. + report_template: '{{if eq .Status.State "success"}}:slack-green: Job *{{.Spec.Job}}* + succeeded.{{else}}:failed: Job *{{.Spec.Job}}* ended with *{{.Status.State}}*.{{end}} <{{.Status.URL}}|View logs>' spec: containers: