diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 19d4b365da..b787183e5b 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -17,6 +17,11 @@ resource_types: source: repository: dpb587/github-status-resource tag: master +- name: slack-notification + type: docker-image + source: + repository: cfcommunity/slack-notification-resource + tag: latest resources: - name: git-repo type: git @@ -98,6 +103,10 @@ resources: access_token: ((github-access-token)) branch: ((branch)) context: jdk10-build +- name: slack-alert + type: slack-notification + source: + url: ((slack-webhook-url)) jobs: - name: build-spring-boot-ci-images plan: @@ -157,6 +166,12 @@ jobs: params: subject: email-details/subject body: email-details/body + - put: slack-alert + params: + text: ":concourse-failed: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci - do: - task: determine-email-body image: spring-boot-ci-image @@ -173,6 +188,12 @@ jobs: params: subject: email-details/subject body: email-details/body + - put: slack-alert + params: + text: ":concourse-succeeded: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci - put: artifactory-repo params: &artifactory-params repo: libs-snapshot-local @@ -275,6 +296,12 @@ jobs: params: subject: email-details/subject body: email-details/body + - put: slack-alert + params: + text: ":concourse-failed: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci - do: - task: determine-email-body image: spring-boot-jdk9-ci-image @@ -291,6 +318,12 @@ jobs: params: subject: email-details/subject body: email-details/body + - put: slack-alert + params: + text: ":concourse-succeeded: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci - name: jdk10-build serial: true public: true @@ -336,6 +369,12 @@ jobs: params: subject: email-details/subject body: email-details/body + - put: slack-alert + params: + text: ":concourse-failed: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci - do: - task: determine-email-body image: spring-boot-jdk10-ci-image @@ -352,6 +391,12 @@ jobs: params: subject: email-details/subject body: email-details/body + - put: slack-alert + params: + text: ":concourse-succeeded: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci - name: stage-milestone serial: true plan: