what we need to check to get result on sonarqube dashboard,since jenkins builds are getting completed but no analysis on SQ dashboard, please guide us,
What output appears in the Jenkins log for the begin and end steps?
Note that if you are calling the Scanner for .NET directly from script you should be calling dotnet sonarscanner begin and dotnet sonarscanner end as documented here.
also we observed
if we run end command it is throwing error,
12:24:55 + dotnet end 12:24:55 Could not execute because the specified command or file was not found. 12:24:55 Possible reasons for this include: 12:24:55 * You misspelled a built-in dotnet command. 12:24:55 * You intended to execute a .NET program, but dotnet-end does not exist. 12:24:55 * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
12:28:46 + /home/.dotnet/tools/./dotnet-sonarscanner end 12:28:46 SonarScanner for MSBuild 5.2.1 12:28:46 Using the .NET Core version of the Scanner for MSBuild 12:28:46 Post-processing started. 12:28:46 08:58:46.273 Temporary analysis directory (usually .sonarqube) doesn’t exist. The “begin” step was probably not executed. 12:28:46 08:58:46.274 Post-processing failed. Exit code: 1
@samkhamk the begin, build and end stages all need to be run from the same directory. It looks like your build script is changing the directory between build and end.
Try moving the end step before you change directory, or temporarily comment out the change of directory to see what happens.