From b553a7eccce4f3bd483f96cca8ec65c67d4b4c36 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sun, 26 Apr 2020 16:50:22 +0200 Subject: [PATCH] Get env --- .azure-pipelines/templates/notifications-jobs.yml | 1 + 1 file changed, 1 insertion(+) 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"