mirror of
https://github.com/digital-asset/daml.git
synced 2024-08-16 08:10:52 +03:00
ci cron: tell Slack on failure (#4179)
Currently, when cron jobs fail, this is completely silent. After #4178, in which we realized the VSCode extension had not been updated for about a month, I believe it may be a good idea to get error messages sent to Slack when a cron job fails. We'll need to monitor for verbosity, but hopefully they will work most of the time. CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
04e8b4b7b1
commit
9d8e8d494a
@ -47,6 +47,7 @@ jobs:
|
||||
--data "{\"text\":\"<!here> *FAILED* Daily Docs: <https://dev.azure.com/digitalasset/daml/_build/results?buildId=$(Build.BuildId)|$MESSAGE>\n\"}" \
|
||||
$(Slack.URL)
|
||||
condition: and(failed(), eq(variables['Build.SourceBranchName'], 'master'))
|
||||
- template: ci/tell-slack-failed.yml
|
||||
|
||||
- job: docker_image
|
||||
timeoutInMinutes: 60
|
||||
@ -86,6 +87,7 @@ jobs:
|
||||
env:
|
||||
DOCKER_LOGIN: $(DOCKER_LOGIN)
|
||||
DOCKER_PASSWORD: $(DOCKER_PASSWORD)
|
||||
- template: ci/tell-slack-failed.yml
|
||||
|
||||
- job: vscode_marketplace
|
||||
timeoutInMinutes: 10
|
||||
@ -122,6 +124,7 @@ jobs:
|
||||
fi
|
||||
env:
|
||||
MARKETPLACE_TOKEN: $(VSCODE_MARKETPLACE_TOKEN)
|
||||
- template: ci/tell-slack-failed.yml
|
||||
|
||||
- job: download_stats
|
||||
timeoutInMinutes: 10
|
||||
@ -147,3 +150,4 @@ jobs:
|
||||
BOTO_CONFIG=/dev/null gsutil cp $STATS gs://daml-data/downloads/$(date -u +%Y%m%d_%H%M%SZ).json.gz
|
||||
env:
|
||||
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
||||
- template: ci/tell-slack-failed.yml
|
||||
|
Loading…
Reference in New Issue
Block a user