diff --git a/ci/pipeline.yml b/ci/pipeline.yml index d4cb44baf3..98b35972ea 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -44,6 +44,16 @@ anchors: properties: "zip.type": "docs" "zip.deployed": "false" + slack-fail-params: &slack-fail-params + text: ":concourse-failed: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci + slack-success-params: &slack-success-params + text: ":concourse-succeeded: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci resource_types: - name: artifactory-resource type: docker-image @@ -250,10 +260,7 @@ jobs: params: { state: "failure", commit: "git-repo" } - put: slack-alert params: - text: ":concourse-failed: " - silent: true - icon_emoji: ":concourse:" - username: concourse-ci + <<: *slack-fail-params - put: repo-status-build params: { state: "success", commit: "git-repo" } - put: artifactory-repo @@ -263,16 +270,10 @@ jobs: do: - put: slack-alert params: - text: ":concourse-failed: " - silent: true - icon_emoji: ":concourse:" - username: concourse-ci + <<: *slack-fail-params - put: slack-alert params: - text: ":concourse-succeeded: " - silent: true - icon_emoji: ":concourse:" - username: concourse-ci + <<: *slack-success-params - name: build-pull-requests serial: true public: true @@ -346,18 +347,12 @@ jobs: params: { state: "failure", commit: "git-repo" } - put: slack-alert params: - text: ":concourse-failed: " - silent: true - icon_emoji: ":concourse:" - username: concourse-ci + <<: *slack-fail-params - put: repo-status-jdk11-build params: { state: "success", commit: "git-repo" } - put: slack-alert params: - text: ":concourse-succeeded: " - silent: true - icon_emoji: ":concourse:" - username: concourse-ci + <<: *slack-success-params - name: windows-build serial: true plan: @@ -376,16 +371,10 @@ jobs: do: - put: slack-alert params: - text: ":concourse-failed: " - silent: true - icon_emoji: ":concourse:" - username: concourse-ci + <<: *slack-fail-params - put: slack-alert params: - text: ":concourse-succeeded: " - silent: true - icon_emoji: ":concourse:" - username: concourse-ci + <<: *slack-success-params - name: stage-milestone serial: true plan: