From e877c9cd424221823672909ff04a0385ab334d1f Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sun, 26 Apr 2020 16:38:09 +0200 Subject: [PATCH] Now use it --- .azure-pipelines/templates/notifications-jobs.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.azure-pipelines/templates/notifications-jobs.yml b/.azure-pipelines/templates/notifications-jobs.yml index 91c4398c4..cd10a5396 100644 --- a/.azure-pipelines/templates/notifications-jobs.yml +++ b/.azure-pipelines/templates/notifications-jobs.yml @@ -4,7 +4,4 @@ jobs: vmImage: ubuntu-latest steps: - bash: | - 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_ID}&view=results\"}" -X POST "${MATTERMOST_URL}/api/v4/posts" - env: - MATTERMOST_TOKEN: $(MATTERMOST_TOKEN) - BUILD_ID: $(Build.BuildId) \ No newline at end of file + 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"