Analyze code from different branches under a single project

Must-share information (formatted with Markdown):

  • Version : 6.5
  • Requirement: I would like to analyze a code from different versions under a same project.
    I’ve an application and it has multiple versions/features under Bitbucket. For each version there will be either a file modified with new code or new file added.

Hence I would like to create an analysis process which would scan for all features under a single project, so that it would be easy to compare what was the change made in the earlier feature and what errors came from new feature from the same file

  • Workout: I’ve created several ways to generate report with difference, by giving same name and key but with different version but un-fortunately it clubs all to a single report, which is difficult to judge what’re the errors

bat “${sqScannerMsBuildHome}\SonarScanner.MSBuild.exe begin /key:VitalPoint6 /name:VitalPoint6 /version:VP6_” + BUILD_BRANCH +" / /d:sonar.verbose=true"

bat ‘REM CALL msbuild VP6.API.sln /t:restore VP6.API.sln /p:DeployOnBuild=true /m:4 /p:BuildInParallel=true /p:PublishProfile=FolderProfile /t:Rebuild /p:Configuration=Release’

bat ‘SET PATH="%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\";%PATH%’

bat ‘call dotnet restore’

bat ‘call “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe” /t:restore VP6.API.sln /p:DeployOnBuild=true /m:4 /p:BuildInParallel=true /p:PublishProfile=FolderProfile /t:Rebuild /p:Configuration=Release’

bat “${sqScannerMsBuildHome}\SonarScanner.MSBuild.exe end”

Two things:

  1. Consider upgrading the SonarQube version, because 6.5 is a dinosaur which is dead and unsupported.
  2. Which SonarQube edition do you use? If: