Skip to content

Commit aab35c7

Browse files
authored
Add Slack notification for cnf-network-tests (#65368)
1 parent 1502859 commit aab35c7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

ci-operator/config/openshift-kni/eco-ci-cd/.config.prowgen

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ slack_reporter:
2222
- telcov10n-metal-single-node-spoke
2323
- telcov10n-metal-single-node-spoke-kpis
2424
- telcov10n-virtualised-single-node-hub-ztp
25+
- cnf-network-functional-tests

ci-operator/jobs/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main-periodics.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,18 @@ periodics:
189189
ci.openshift.io/generator: prowgen
190190
pj-rehearse.openshift.io/can-be-rehearsed: "true"
191191
name: periodic-ci-openshift-kni-eco-ci-cd-main-cnf-network-4.17-cnf-network-functional-tests
192+
reporter_config:
193+
slack:
194+
channel: '#eco-ci-cd-notifications'
195+
job_states_to_report:
196+
- failure
197+
- error
198+
- success
199+
- aborted
200+
report_template: '{{if eq .Status.State "success"}} :slack-green: Job *{{.Spec.Job}}*
201+
ended with *{{.Status.State}}*. <{{.Status.URL}}|View logs> {{else}} :failed:
202+
Job *{{.Spec.Job}}* ended with *{{.Status.State}}*. <{{.Status.URL}}|View
203+
logs> {{end}}'
192204
spec:
193205
containers:
194206
- args:

0 commit comments

Comments
 (0)