daml/ci/tell-slack-failed.yml

15 lines
551 B
YAML
Raw Normal View History

# Copyright (c) 2020 The DAML Authors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
2019-07-04 17:22:22 +03:00
steps:
- bash: |
set -euo pipefail
MESSAGE=$(git log --pretty=format:%s -n1)
curl -XPOST \
-i \
-H 'Content-type: application/json' \
2019-07-05 14:35:30 +03:00
--data "{\"text\":\"<!here> *FAILED* $(Agent.JobName): <https://dev.azure.com/digitalasset/daml/_build/results?buildId=$(Build.BuildId)|$MESSAGE>\n\"}" \
$(Slack.team-daml)
2019-07-04 17:22:22 +03:00
condition: and(failed(), eq(variables['Build.SourceBranchName'], 'master'))