diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 66070f9224..d3311b0903 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 @@ -91,6 +96,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: @@ -150,6 +159,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 @@ -166,6 +181,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 @@ -227,6 +248,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 @@ -243,6 +270,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 @@ -288,6 +321,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 @@ -304,6 +343,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: