- versions used (MS Build: Azure DevOps Service, SonarQube:
6.7.0.33306
, Scanner:4.0, Plugin: 4.6.3, sonar-buildbreaker-vsts: 8.0.0 (GitHub - simondel/sonar-buildbreaker-vsts: VSTS task to break your build when you failed the quality gate) )
P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behavioursonarqube.txt (2.0 MB)
error Observed:
Report path by default should be
sonar.scanner.metadataFilePath=D:\a\_temp\sonar\20190827.2\6ce0ecd1-a32d-2967-678e-6330620a7cb7\report-task.txt
But Observed Written to
Report metadata written to D:\a\1.sonarqube\out.sonar\report-task.txt
Publish Quality Gate and Build Breaker task is trying to find the File “sonar.scanner.metadataFilePath” but says 0 matches.
Attachment shows the logs. We have Publish Quality gate and Build Breaker task Which can’t find the file in temp folder due to which build doesn’t fail as expected.
-
steps to reproduce
Run the Build with Debug mode Enabled. -
potential workaround
Ideally the file should be published under temp folder and Sonarqube and build breaker task should look in the same location