Skip to content

Commit

Permalink
test: Tekton Notify to Slack on Success (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Sep 21, 2022
1 parent 81453e0 commit 0d52f87
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion test/suites/common/suite.yaml
Expand Up @@ -63,4 +63,16 @@ spec:
- name: webhook-secret
value: slack-webhook-secret
- name: message
value: $(context.pipelineRun.name) has failed
value: ":x: $(context.pipelineRun.name) has failed"
- name: notify-build-success
when:
- input: $(tasks.status)
operator: in
values: ["Succeeded", "Completed"]
taskRef:
name: notify-slack
params:
- name: webhook-secret
value: slack-webhook-secret
- name: message
value: ":white_check_mark: $(context.pipelineRun.name) has succeeded"
14 changes: 13 additions & 1 deletion test/suites/upgrade/pipeline.yaml
Expand Up @@ -99,4 +99,16 @@ spec:
- name: webhook-secret
value: slack-webhook-secret
- name: message
value: $(context.pipelineRun.name) has failed
value: ":x: $(context.pipelineRun.name) has failed"
- name: notify-build-success
when:
- input: $(tasks.status)
operator: in
values: ["Succeeded", "Completed"]
taskRef:
name: notify-slack
params:
- name: webhook-secret
value: slack-webhook-secret
- name: message
value: ":white_check_mark: $(context.pipelineRun.name) has succeeded"

0 comments on commit 0d52f87

Please sign in to comment.