I have configured SonarQube Scanner and SonarScanner for MSBuild inside jenkins. Added the token from sonarcloud.
And here is my code behind Jenkins stage:
stage('SonarQube analysis') {
withSonarQubeEnv('sonarqube'){
def scannerHome = tool 'sonarqube-msbuild';
sh "${scannerHome}/SonarScanner.MSBuild.dll begin /k:rushdigital_z-docker-base-image-updater /o:rushdigital"
sh 'MSBuild.dll /t:Rebuild'
sh "${scannerHome}/SonarScanner.MSBuild.dll end"
}
}
When I run the build, it throws the error like below:
Did I miss anything?
Do you have any documentation for the integration of .NET 5?