You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the behaviour of sonar-scm-tfvc is incorrect when used with gated check-ins. A TFVC gated check-in creates a shelveset of the changes that are 'gated' and uses the success of the build to determine whether the shelveset is then merged to the relevant branch. However, SonarTfsAnnotate reports that the code in the shelveset has not been check-in and refuses to analyse the code. Here is the output in the MSBuild.SonarQube.Runner's end process:-
08:55:30.826 INFO - SCM provider for this project is: tfvc
08:55:30.842 INFO - 1 files to be analyzed
08:55:34.507 ERROR - Unable to TFS annotate the following file which line 43 has not yet been checked-in (LOCAL): D:/Builds/5/MyBuild/DeleteThisRedundantClass.cs
08:55:34.522 INFO - 0/1 files analyzed
Without this analysis SonarQube's "Coverage on new Code" value is null. Any SonarQube Quality Gate that is dependent on "Coverage on new Code" will be ignored because it is null. The result is that it is not possible to use sonar-scm-tfvc with a gated check-in that enforces that code coverage on new code meets the company's standard.
I would like SonarTfsAnnotate to recognise that the code that it needs to analyse is in the shelveset not the TFVC branch.
The text was updated successfully, but these errors were encountered:
I think the behaviour of sonar-scm-tfvc is incorrect when used with gated check-ins. A TFVC gated check-in creates a shelveset of the changes that are 'gated' and uses the success of the build to determine whether the shelveset is then merged to the relevant branch. However, SonarTfsAnnotate reports that the code in the shelveset has not been check-in and refuses to analyse the code. Here is the output in the MSBuild.SonarQube.Runner's end process:-
08:55:30.826 INFO - SCM provider for this project is: tfvc
08:55:30.842 INFO - 1 files to be analyzed
08:55:34.507 ERROR - Unable to TFS annotate the following file which line 43 has not yet been checked-in (LOCAL): D:/Builds/5/MyBuild/DeleteThisRedundantClass.cs
08:55:34.522 INFO - 0/1 files analyzed
Without this analysis SonarQube's "Coverage on new Code" value is null. Any SonarQube Quality Gate that is dependent on "Coverage on new Code" will be ignored because it is null. The result is that it is not possible to use sonar-scm-tfvc with a gated check-in that enforces that code coverage on new code meets the company's standard.
I would like SonarTfsAnnotate to recognise that the code that it needs to analyse is in the shelveset not the TFVC branch.
The text was updated successfully, but these errors were encountered: