From 9d8e8d494a30b327db5483cdcbc0f489df468b32 Mon Sep 17 00:00:00 2001 From: Gary Verhaegen Date: Thu, 23 Jan 2020 15:28:37 +0100 Subject: [PATCH] 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 --- azure-cron.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-cron.yml b/azure-cron.yml index bb72dac394..36eb8dc33d 100644 --- a/azure-cron.yml +++ b/azure-cron.yml @@ -47,6 +47,7 @@ jobs: --data "{\"text\":\" *FAILED* Daily Docs: \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