Skip to content

Commit 0e8af61

Browse files
committed
Centralize reporter_config
1 parent 3f78130 commit 0e8af61

3 files changed

Lines changed: 7 additions & 35 deletions

File tree

config/jobs/periodic/docker/periodic-ci-docker.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ periodics:
99
- base_ref: main
1010
org: ppc64le-cloud
1111
repo: docker-ce-build
12-
reporter_config:
13-
slack:
14-
channel: 'prow-job-notifications'
15-
job_states_to_report:
16-
- failure
17-
- error
18-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
1912
spec:
2013
containers:
2114
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87
@@ -58,13 +51,6 @@ periodics:
5851
- base_ref: main
5952
org: ppc64le-cloud
6053
repo: docker-ce-build
61-
reporter_config:
62-
slack:
63-
channel: 'prow-job-notifications'
64-
job_states_to_report:
65-
- failure
66-
- error
67-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
6854
spec:
6955
containers:
7056
- image: quay.io/powercloud/docker-ce-build@sha256:b1e2679b9a5aabe15a94ae3130f5b02ce67441cf361fda7dc7a41929bb50ba87

config/jobs/ppc64le-cloud/build-docker/postsubmit-ci-docker.yaml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ postsubmits:
88
decoration_config:
99
timeout: 2h
1010
run_if_changed: 'job/postsubmit-ci-docker'
11-
reporter_config:
12-
slack:
13-
channel: 'prow-job-notifications'
14-
job_states_to_report:
15-
- failure
16-
- error
17-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
1811
branches:
1912
- prow-job-tracking
2013
spec:
@@ -61,13 +54,6 @@ postsubmits:
6154
decoration_config:
6255
timeout: 2h
6356
run_if_changed: 'job/postsubmit-ci-docker'
64-
reporter_config:
65-
slack:
66-
channel: 'prow-job-notifications'
67-
job_states_to_report:
68-
- failure
69-
- error
70-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
7157
branches:
7258
- prow-job-tracking
7359
spec:
@@ -114,13 +100,6 @@ postsubmits:
114100
decoration_config:
115101
timeout: 2h
116102
run_if_changed: 'job/postsubmit-ci-docker'
117-
reporter_config:
118-
slack:
119-
channel: 'prow-job-notifications'
120-
job_states_to_report:
121-
- failure
122-
- error
123-
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
124103
branches:
125104
- prow-job-tracking
126105
spec:

config/prow/config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ presets:
180180
secretKeyRef:
181181
name: docker-s3-credentials
182182
key: password
183+
reporter_config:
184+
slack:
185+
channel: 'prow-job-notifications'
186+
job_states_to_report:
187+
- failure
188+
- error
189+
report_template: 'Job {{.Spec.Job}} of type {{.Spec.Type}} ended with state {{.Status.State}}. <!subteam^S02N6DWBX0F> <{{.Status.URL}}|View logs>'
183190
volumes:
184191
- name: docker-root
185192
emptyDir: {}

0 commit comments

Comments
 (0)