daml/ci/tell-slack-failed.yml

11 lines
445 B
YAML
Raw Normal View History

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\"}" \
2019-07-04 17:22:22 +03:00
$(Slack.URL)
condition: and(failed(), eq(variables['Build.SourceBranchName'], 'master'))