Sonarcloud analysis tasks in VSTS doesn't consider quality gate profile defined for project in sonarcloud

sonarcloud
vsts

(Vishvmitra Belsare) #1

We are using sonarcloud analysis with our VSTS build pipeline. We have created a quality gate profile for our project in sonarcloud which includes condition for code coverage. But we see that our quality gate profile is not considered for the analysis and the ‘publish quality gate result’ task generates a quality gate report which doesn’t include the conditions from our profile. It considers only two conditions -
a) open_issues > 0
b) new_open_issues > 0
As a result, the build breaker task doesn’t break the build for the conditions defined in our quality gate profile like coverage etc.
Kindly look into it.