From cc6ef038f22585a068b29634fd7494ba1dfaea11 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Mon, 8 Jul 2019 11:07:09 -0700 Subject: [PATCH] Move Slack Alert to the last possible step in the pipeline Closes gh-17445 --- ci/pipeline.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/ci/pipeline.yml b/ci/pipeline.yml index ec3ee2af8f..fb99ae5da6 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -216,12 +216,6 @@ jobs: username: concourse-ci - put: repo-status-build params: { state: "success", commit: "git-repo" } - - 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 @@ -237,6 +231,20 @@ jobs: properties: "zip.type": "docs" "zip.deployed": "false" + on_failure: + do: + - put: slack-alert + params: + text: ":concourse-failed: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci + - put: slack-alert + params: + text: ":concourse-succeeded: " + silent: true + icon_emoji: ":concourse:" + username: concourse-ci - name: build-pull-requests serial: true public: true