Skip to content

Commit c6d2324

Browse files
authoredAug 31, 2022
test: fix params specification (#2422)
1 parent 6af5123 commit c6d2324

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed
 

‎test/suites/common/suite.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ spec:
5252
operator: in
5353
values:
5454
- "true"
55-
- name: notify-build-failure # executed only when build task fails and notifications are enabled
55+
- name: notify-build-failure
5656
when:
5757
- input: $(tasks.status)
5858
operator: in
5959
values: ["Failed"]
6060
taskRef:
6161
name: notify-slack
62-
params:
63-
- name: webhook-secret
64-
value: slack-webhook-secret
65-
- name: message
66-
value: $(context.pipelineRun.name) has failed
62+
params:
63+
- name: webhook-secret
64+
value: slack-webhook-secret
65+
- name: message
66+
value: $(context.pipelineRun.name) has failed

‎test/suites/upgrade/pipeline.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,15 @@ spec:
7777
operator: in
7878
values:
7979
- "true"
80+
- name: notify-build-failure
81+
when:
82+
- input: $(tasks.status)
83+
operator: in
84+
values: ["Failed"]
85+
taskRef:
86+
name: notify-slack
87+
params:
88+
- name: webhook-secret
89+
value: slack-webhook-secret
90+
- name: message
91+
value: $(context.pipelineRun.name) has failed

0 commit comments

Comments
 (0)
Please sign in to comment.