From 75f8dddf8814ae0004b9b2d86036ae9a1f2787e6 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sun, 26 Apr 2020 17:22:03 +0200 Subject: [PATCH] Fix variable --- .azure-pipelines/templates/notify-failure-steps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/templates/notify-failure-steps.yml b/.azure-pipelines/templates/notify-failure-steps.yml index 4e6c06330..dbb6ed1df 100644 --- a/.azure-pipelines/templates/notify-failure-steps.yml +++ b/.azure-pipelines/templates/notify-failure-steps.yml @@ -6,5 +6,5 @@ stages: 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/$(Build.RepositoryId)/_build/results?buildId=$(Build.BuildId)&view=results"}' -X POST "$(MATTERMOST_URL)/api/v4/posts" + curl -i -H "Authorization: Bearer $(MATTERMOST_TOKEN)" --data '{"channel_id":"$(MATTERMOST_CHANNEL_ID)","message":"Build has failed: https://dev.azure.com/$(Build.Repository.ID)/_build/results?buildId=$(Build.BuildId)&view=results"}' -X POST "$(MATTERMOST_URL)/api/v4/posts" condition: failed()