diff --git a/test/suites/common/suite.yaml b/test/suites/common/suite.yaml index 0a3b9d39c9cc..deab36cec2b6 100644 --- a/test/suites/common/suite.yaml +++ b/test/suites/common/suite.yaml @@ -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" \ No newline at end of file diff --git a/test/suites/upgrade/pipeline.yaml b/test/suites/upgrade/pipeline.yaml index 2ef119648dda..44efdd011554 100644 --- a/test/suites/upgrade/pipeline.yaml +++ b/test/suites/upgrade/pipeline.yaml @@ -99,4 +99,16 @@ spec: - name: webhook-secret value: slack-webhook-secret - name: message - value: $(context.pipelineRun.name) has failed \ No newline at end of file + 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" \ No newline at end of file