I am 8.2 developer edition and using Jenkins to run the SonarScanner for MSBuild 4.9 on a dotnet framework project. However despite passing the project key in as a parameter it is still creating a new project in SonarQube based on the branch name. So for each branch I get a new project.
The code being used is:
bat "SonarScanner.MSBuild.exe begin /k:\"${sonarprojectkey}\" "
bat "\"${tool 'msbuildhome'}\\MSBuild.exe\" \"${env.WORKSPACE}\" /t:Rebuild"
bat "SonarScanner.MSBuild.exe end"
}
Is there somewhere else I should be passing the project key?