diff --git a/.azure-pipelines/templates/notifications-jobs.yml b/.azure-pipelines/templates/notifications-jobs.yml index cd10a5396..7d81c7df3 100644 --- a/.azure-pipelines/templates/notifications-jobs.yml +++ b/.azure-pipelines/templates/notifications-jobs.yml @@ -4,4 +4,5 @@ jobs: vmImage: ubuntu-latest steps: - bash: | + env curl -i -H "Authorization: Bearer $(MATTERMOST_TOKEN)" --data '{"channel_id":"$(MATTERMOST_CHANNEL_ID)","message":"Build has failed: https://dev.azure.com/adferrand/certbot/_build/results?buildId=$(Build.BuildId)&view=results"}' -X POST "$(MATTERMOST_URL)/api/v4/posts"