Skip to content

Commit

Permalink
ci cron: tell Slack on failure (digital-asset#4179)
Browse files Browse the repository at this point in the history
Currently, when cron jobs fail, this is completely silent. After digital-asset#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
  • Loading branch information
garyverhaegen-da authored Jan 23, 2020
1 parent 04e8b4b commit 9d8e8d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azure-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -122,6 +124,7 @@ jobs:
fi
env:
MARKETPLACE_TOKEN: $(VSCODE_MARKETPLACE_TOKEN)
- template: ci/tell-slack-failed.yml

- job: download_stats
timeoutInMinutes: 10
Expand All @@ -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

0 comments on commit 9d8e8d4

Please sign in to comment.