Fix variable in daily slack notifications (#6221)

Currently the report fails with variables[Build.SourceBranchName]:
command not found which is obviously not what we want (it’s mixing up
the syntax in Azure’s yaml config and Bash). Looking at the
code in the tell-slack-failed.yml, this one does seem to work but I
haven’t tested this so :crossed-fingers:.

changelog_begin
changelog_end
This commit is contained in:
Moritz Kiefer 2020-06-04 12:41:36 +02:00 committed by GitHub
parent 2fe320fe48
commit f1822f6daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ steps:
MESSAGE=${{ parameters['success-message'] }}
fi
PAYLOAD="{\"text\":\"$MESSAGE\n\"}"
if [ "$(variables['Build.SourceBranchName'])" = "master" ]; then
if [ "$(Build.SourceBranchName)" = "master" ]; then
curl -XPOST \
-i \
-H 'Content-type: application/json' \