Not sure if this is a sonarcloud or a vsts issue but I’ve noticed that the “Run code analysis” task is not using the full branch name anymore.
Take this example: the branch name is story/1234-NameOfTheStory. In sonarcloud the branch is reported as 1234-NameOfTheStory. Somehow it picks the string after the /.2018-07-19T10:02:07.2138351Z INFO: Branch name: 1234-NameOfTheStory, type: short living
To make matters even more confusing, everything works perfectly fine If I run the definition manually. I can only see this type of behaviour only when the build runs as a result of a trigger being fired.